Skip to content

Commit

Permalink
Create Remove-Directory.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronparker committed Oct 16, 2024
1 parent f122eec commit 030cc92
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/tweaks/Remove-Directory.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<#
Remove unneeded directories from the image
#>

# Remove paths that we should not need to leave around in the image
if (Test-Path -Path "$Env:SystemDrive\Apps") {
Remove-Item -Path "$Env:SystemDrive\Apps" -Recurse -Force -ErrorAction "SilentlyContinue"
}
if (Test-Path -Path "$Env:SystemDrive\DeployAgent") {
Remove-Item -Path "$Env:SystemDrive\DeployAgent" -Recurse -Force -ErrorAction "SilentlyContinue"
}

0 comments on commit 030cc92

Please sign in to comment.