diff --git a/src/steps/os/windows.rs b/src/steps/os/windows.rs index 6a06ffe0..83d54833 100644 --- a/src/steps/os/windows.rs +++ b/src/steps/os/windows.rs @@ -93,7 +93,7 @@ pub fn upgrade_store_apps(ctx: &ExecutionContext) -> Result<()> { print_separator("Microsoft Store"); println!("Updating Microsoft Store applications in the background"); - ctx.run_type().execute(sudo).arg(path).args(&["-NoProfile", "-Command", "(Get-WmiObject -Namespace 'root\\cimv2\\mdm\\dmmap' -Class 'MDM_EnterpriseModernAppManagement_AppManagement01').UpdateScanMethod() | Out-Null"]).check_run() + ctx.run_type().execute(sudo).arg(path).args(&["-NoProfile", "-Command", "(Get-WmiObject -Namespace 'root\\cimv2\\mdm\\dmmap' -Class 'MDM_EnterpriseModernAppManagement_AppManagement01').UpdateScanMethod() > $null"]).check_run() } pub fn reboot() {