Open selfagency opened 1 year ago
As I suspected, when run with pwsh
instead of Windows PowerShell 1.0, it works.
Found a workaround. Open Windows PowerShell as administrator and run set-executionpolicy remotesigned
from the prompt.
@selfagency, in #671 an evaluated shell is called to import and run the PSWindowsUpdate module. Let me know if this solves your problem.
Erroneous Behavior
Expected Behavior
For the update to run as expected.
Steps to reproduce
topgrade --only system
Possible Cause (Optional)
C:\windows\System32\WindowsPowerShell\v1.0\powershell.EXE
is a restricted and outdated version of PowerShell. You should usepwsh
instead, which is the modern version, if it's available and present in the path.Problem persists without calling from topgrade
Did you run topgrade through
Remote Execution
If yes, does the issue still occur when you run topgrade directlly in your remote host
Additional Details
Operation System/Version Windows 10 Education 22H2
Installation Cargo
Topgrade version (
topgrade -V
) 12.0.2Verbose Output (
topgrade -v
)