From eb358c1a8835949a95aa7cfb00275628ac49e357 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 22 Feb 2021 10:37:35 +0200 Subject: [PATCH] Use redirection to $null instead of Out-Null (fix #651) --- src/steps/os/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {