diff --git a/images/win/scripts/Installers/Initialize-VM.ps1 b/images/win/scripts/Installers/Initialize-VM.ps1 index 5f50870e..3e3af742 100644 --- a/images/win/scripts/Installers/Initialize-VM.ps1 +++ b/images/win/scripts/Installers/Initialize-VM.ps1 @@ -43,6 +43,12 @@ function Disable-WindowsUpdate { # Enable $ErrorActionPreference='Stop' for AllUsersAllHosts Add-Content -Path $profile.AllUsersAllHosts -Value '$ErrorActionPreference="Stop"' +Write-Host "Disable Server Manager on Logon" +Get-ScheduledTask -TaskName ServerManager | Disable-ScheduledTask + +Write-Host "Disable 'Allow your PC to be discoverable by other PCs' popup" +New-Item -Path HKLM:\System\CurrentControlSet\Control\Network -Name NewNetworkWindowOff -Force + Write-Host "Disable Windows Update" Disable-WindowsUpdate