Skip to content

Commit

Permalink
Fix/pswindowsupdate (#671)
Browse files Browse the repository at this point in the history
* cargo update

* An elevated PowerShell is required to run Install-WindowsUpdate on my system.

* Revert "cargo update"

This reverts commit fb58ce7.
  • Loading branch information
niStee authored Jan 29, 2024
1 parent 707698f commit b07288e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/steps/powershell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl Powershell {
"-NoProfile",
"-Command",
&format!(
"Import-Module PSWindowsUpdate; Install-WindowsUpdate -MicrosoftUpdate {} -Verbose",
"Start-Process powershell -Verb runAs -ArgumentList 'Import-Module PSWindowsUpdate; Install-WindowsUpdate -MicrosoftUpdate {} -Verbose'",
if ctx.config().accept_all_windows_updates() {
"-AcceptAll"
} else {
Expand Down

0 comments on commit b07288e

Please sign in to comment.