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",
|
"-NoProfile",
|
||||||
"-Command",
|
"-Command",
|
||||||
&format!(
|
&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() {
|
if ctx.config().accept_all_windows_updates() {
|
||||||
"-AcceptAll"
|
"-AcceptAll"
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user