Add a flag to control Windows update acceptance policy (fix #310)

This commit is contained in:
Roey Darwish Dror
2020-01-30 20:42:49 +02:00
parent b91fa4e26c
commit 8c12707693
4 changed files with 19 additions and 3 deletions

View File

@@ -623,7 +623,10 @@ fn run() -> Result<()> {
execute(
&mut report,
"Windows update",
|| powershell::Powershell::windows_powershell().windows_update(run_type),
|| {
powershell::Powershell::windows_powershell()
.windows_update(run_type, config.accept_all_windows_updates())
},
config.no_retry(),
)?;
}