I have a Poweshell script that if I run it on a machine locally in PS will silently run the Windows 10 to Windows 11 (24H2) upgrade, perform one restart and it's good to go. SO, I KNOW THE PS SCRIPT WORKS. I've attached a snip-it of the script that works locally.
I've saved the Powershell Script in the Package share and set up a deployment job, but it just times out and eventually fails.
This is the job syntax.
powershell.exe -executionpolicy bypass -file "PackageShare}\UpgradetoWin11.ps1"
I have used ChatGPT, LanSweeper and many resources to no avail.
Any suggestions?