Microsoft’s Windows Sandbox is a lightweight virtual machine environment designed to provide a secure and isolated environment for testing and running untrusted applications. It enables users to quickly launch and test potentially harmful software without affecting the operating system. This article will walk you through the process of enabling Windows […]
Blog
You can easily disable the MSiSCSI service with this simple line: $ret = Set-Service MSiSCSI -Status Stopped -StartupType Disabled if (!$?) {write-host (“Warning: $($error[0])”)} Else {write-host (“Successfully disabled Microsoft iSCSI Initiator Service (MSiSCSI)”)}
Quick script to Block Cortana on the Windows Firewall by using PowerShell: $path = "$env:windir\systemapps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe" If (Test-Path $path) { If ($(Get-NetFirewallRule -DisplayName DisableCortana)) { Write-Host("Firewall rule for 'DisableCortana' already exists") } else { New-NetFirewallRule -DisplayName DisableCortana -Action Block -Direction Outbound -Profile Any -Description "Blocks outbound network connections originated from […]
Recently I’ve ran into the situation where an SCCM (MECM) device needed to be migrated to Intune and the rule was that for AutoPilot to work the device must have: Bios Password Wiped Secure Boot enabled Recovery Partition enabled Factory reset to OOBE The Out of The Box Experience then […]
Are you running your installation/uninstallation from System Context (NT Authority\System) and want to delete user registry? You can do that by parsing all the users in HKEY_USERS key. Under HKEY_USERS you will find user IDs starting with S-1-5-21. We need to search under all keys which are starting with S-1-5-21 […]
WSL is out of preview and it’s now available on Microsoft Store for both Windows 10 and Windows 11 users. This version is now the default experience for new users and those who upgrade. Also, Systemd support is now available in WSL. With the simple command of: wsl –install It […]
Be aware for latest patch day releases as they might break some functionality that you currently have in your infrastructure. October patch day KB KB5020276 breaks the domain join. There is a valid workaround but it introduces the CVE-2022-38042 so take proper approvals from security before applying it into your […]
User preferences are very important nowadays and if you have a shortcut or want to open an URL for the user you might as well check what is the preferred browser that he uses. This information can be easily found in: HKCU\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice And from this information you can easily create […]
Small script which helps you enable DEP (Data Execution Prevention) wrote in PowerShell: # Script to enable DEP on clients with and without Bitlocker $script:ErrorActionPreference = "SilentlyContinue" $DebugPreference = "Continue" $ScriptPath = $MyInvocation.MyCommand.Path $ScriptDir = split-path -parent $ScriptPath $ScriptName = ($MyInvocation.MyCommand.Name).SubString(0,($MyInvocation.MyCommand.Name).Length-4) # Function to write Logfile Function Log($text) { […]
Simple script to disable NetBIOS over TCP/IP with PowerShell: $key = Get-ChildItem HKLM:\System\CurrentControlSet\Services\NetBT\Parameters\Interfaces ForEach($nic in $key) { if (!(Get-ItemProperty $nic.pspath).NetbiosOptions -eq 2) { Set-ItemProperty $nic.pspath -name "NetbiosOptions" -value 2 Write-Host "Successfully set $nic\NetbiosOptions to 2" } Else { Write-Host "$nic\NetbiosOptions already set to 2" } }
I am proud to announce that the free MSI Application Packaging Book is now up on Udemy! What you will learn: What is Windows Installer and what are the tools to use for application packaging? What is the structure of a Windows Installer package? Practical scenarios on “How to create […]
The Quick Assist tool came in the past as a default executable which was located into the system32 folder of Windows. Starting with Windows 10 21H2, Microsoft decided to move Quick Assist into the Microsoft Store. The first issue we see is that Quick Assist was only placed in system32 […]