Fix/pswindowsupdate (#671)
* cargo update
* An elevated PowerShell is required to run Install-WindowsUpdate on my system.
* Revert "cargo update"
This reverts commit fb58ce761a.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user