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 […]
Powershell
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 […]
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" } }
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 […]
After I have did a small test lab for Azure Virtual Desktop, it was time to play a little bit with MSIX App Attach functionality that Azure offers. However, after my virtual machine was created, when I went into the host pool to add an MSIX package, the following error […]
Because of the workload and limited time to post on my personal blog, I’ve decided to do small little posts like this when I talk about different challenges that I personally, or some other colleagues in the industry faced during their working days. Today I want to have a look […]
I was struggling with a Windows licensing topic and as it turns out, Microsoft it’s designing some tools to be language dependent in terms of output (i’ll do a separate blog post regarding this). There were many ideas on how to tackle the problem, but afterwards I thought “hey, I […]
If you need to download an MSIX/APPX package from the Microsoft Store, you don’t technically have any alternative rather than the actual Store. But I’ve stumbled upon a PowerShell script designed by Mattias which is easy to use and so far it works great. First, navigate to the GitHub repository […]
In this example we will create a simple form with a Combo Box, which will act as a drop down list. As an addition, we will add the functionality in the code to detect when the user selects anything from the drop down menu. To create a simple PowerShell form, […]