Merge pull request #1006 from AtOMiCNebula/jdweiner/Squelch-FinalizeTakeOwn

Suppress output from takeown during Windows's Finalize-VM.ps1
This commit is contained in:
Alejandro Pauly
2020-06-05 08:57:41 -04:00
committed by GitHub

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
}