I just built a job in LanSweeper to silently update Windows 10 from 1909 to 2009 (20H2), the current Feature\\Version update. Works great. Installs silently BUT when the install is complete, it restarts the machine.<\/p>\n
What Powershell command could I add to this script for it not to restart, but finish when the User restarts? Any help would be much appreciated…<\/p>\n
$dir = ‘C:_Windows_FU\\packages’ Microsoft Windows 10 Pro<\/p>","upvoteCount":5,"answerCount":17,"datePublished":"2021-02-09T17:20:59.000Z","author":{"@type":"Person","name":"chrismullins9988","url":"https://community.spiceworks.com/u/chrismullins9988"},"suggestedAnswer":[{"@type":"Answer","text":" I just built a job in LanSweeper to silently update Windows 10 from 1909 to 2009 (20H2), the current Feature\\Version update. Works great. Installs silently BUT when the install is complete, it restarts the machine.<\/p>\n What Powershell command could I add to this script for it not to restart, but finish when the User restarts? Any help would be much appreciated…<\/p>\n $dir = ‘C:_Windows_FU\\packages’ Microsoft Windows 10 Pro<\/p>","upvoteCount":5,"datePublished":"2021-02-09T17:20:59.000Z","url":"https://community.spiceworks.com/t/script-to-install-win-10-feature-update-silently/790146/1","author":{"@type":"Person","name":"chrismullins9988","url":"https://community.spiceworks.com/u/chrismullins9988"}},{"@type":"Answer","text":" Welcome<\/p>\n If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>\n
\nmkdir $dir
\n$webClient = New-Object System.Net.WebClient
\n$url = ’ https://go.microsoft.com/fwlink/?LinkID=799445<\/a> ’
\n$file = “$($dir)\\Win10Upgrade.exe”
\n$webClient.DownloadFile($url,$file)
\nStart-Process -FilePath $file -ArgumentList ‘/quietinstall /skipeula /auto upgrade /copylogs $dir’<\/p>\n
\nmkdir $dir
\n$webClient = New-Object System.Net.WebClient
\n$url = ’ https://go.microsoft.com/fwlink/?LinkID=799445<\/a> ’
\n$file = “$($dir)\\Win10Upgrade.exe”
\n$webClient.DownloadFile($url,$file)
\nStart-Process -FilePath $file -ArgumentList ‘/quietinstall /skipeula /auto upgrade /copylogs $dir’<\/p>\n