Script to download and run the Windows Upgrade Assistant-- handy for rapidly updating missing Win Updates and/or feature upgrades.
# Make a directory to store the update
echo "Preparing the PC for the update..."
$dir = 'C:\_Windows_FU\packages'
If(!(test-path $dir))
{
New-Item -ItemType Directory -Force -Path $dir
}
$webClient = New-Object System.Net.WebClient
# Get the Microsoft Upgrade assistant exe
echo "Getting the Microsoft Upgrae assistant software..."
$url = 'https://go.microsoft.com/fwlink/?LinkID=799445'
$file = "$($dir)\Win10Upgrade.exe"
$webClient.DownloadFile($url,$file)
# Run the upgrade assistant
echo "Running the Upgrade Assistant"
Start-Process -Wait -FilePath $file -ArgumentList '/quiet /skipeula /auto upgrade /copylogs $dir'
echo "Please wait for the PC to finish updates. This could take a while."
echo "During the update time the computer will not be available in LogMeIn."
echo "Once complete the PC will show as online and you will be able to access from LogMeIn."