Suppress output from takeown

This commit is contained in:
Jeff Weiner (OFFICE)
2020-06-04 22:58:47 -07:00
parent efdfa52b32
commit 8d37f28660

View File

@@ -19,7 +19,7 @@ Write-Host "Clean up various directories"
if (Test-Path $_) {
Write-Host "Removing $_"
try {
Takeown /d Y /R /f $_
Takeown /d Y /R /f $_ | Out-Null
Icacls $_ /GRANT:r administrators:F /T /c /q 2>&1 | Out-Null
Remove-Item $_ -Recurse -Force | Out-Null
}