Redirect locking icals output to Out-Null
This commit is contained in:
parent
cb41a40d7a
commit
5f13170898
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ function lock_dir {
|
||||||
Try{ Remove-Item $dir\* -Force -Recurse -ErrorAction SilentlyContinue}
|
Try{ Remove-Item $dir\* -Force -Recurse -ErrorAction SilentlyContinue}
|
||||||
Catch {Write-Host -ForegroundColor Red "Some files can't be deleted."}
|
Catch {Write-Host -ForegroundColor Red "Some files can't be deleted."}
|
||||||
#lock GWX directory
|
#lock GWX directory
|
||||||
icacls "$dir" /deny *S-1-1-0:`(CI`)`(OI`)F
|
icacls "$dir" /deny *S-1-1-0:`(CI`)`(OI`)F 2>&1 | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host -Nonewline -ForegroundColor white "Searching for GWX process ... "
|
Write-Host -Nonewline -ForegroundColor white "Searching for GWX process ... "
|
||||||
|
|
Reference in a new issue