# iex (irm osd.grotenbreg.nl) $host.ui.RawUI.WindowTitle = "Post OOBE Bootstrap" $ProgressPreference = 'SilentlyContinue' If (-Not (Test-NetConnection -ComputerName osd.grotenbreg.nl -Port 443)) { [System.Windows.Forms.SendKeys]::SendWait("No internet, select Wifi network") [System.Windows.Forms.SendKeys]::SendWait("explorer ms-availablenetworks:{enter}") } #Write-Host -NoNewLine 'Press any key to continue...'; #$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown'); Start-Transcript C:\StartTranscript.txt "Start: $((Get-Date).ToString('HH:mm:ss'))" Install-Module -Name PSWindowsUpdate -Force #Get-Package -Name PSWindowsUpdate Write-Host "`n`n`n`n`n`n" $ProgressPreference = 'Continue' Get-WindowsUpdate -AcceptAll -Install -IgnoreReboot "End $((Get-Date).ToString('HH:mm:ss'))" Stop-Transcript #Write-Host -NoNewLine 'Press any key to continue...'; #$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');