reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v DevicePasswordLessBuildVersion /t REG_DWORD /d 0 /f powershell set-executionpolicy remotesigned Set-TimeZone -Name "FLE Standard Time" dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart Install-Module -Name PSWindowsUpdate -Force -SkipPublisherCheck Import-Module PSWindowsUpdate echo Check for available updates and count them $updatesCount = (Get-WindowsUpdate -MicrosoftUpdate).Count echo Display the number of available updates Write-Output "There are $updatesCount updates available." echo Check for available updates, install them, and reboot if necessary Get-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -AutoReboot