delete CSCE folder
This commit is contained in:
10
samy.ps1
10
samy.ps1
@@ -373,6 +373,16 @@ $ConfirmPreference = 'None'
|
||||
Write-LogHybrid "Failed to remove SVSMSP from session: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent
|
||||
}
|
||||
}
|
||||
# CSCE cleanup
|
||||
$cscePath = 'C:\CSCE'
|
||||
if (Test-Path $cscePath) {
|
||||
try {
|
||||
Remove-Item -Path $cscePath -Recurse -Force
|
||||
Write-LogHybrid "Deleted '$cscePath' contents." "Success" "SVSModule" -LogToEvent
|
||||
} catch {
|
||||
Write-LogHybrid "Failed to delete '$cscePath': $($_.Exception.Message)" "Warning" "SVSModule" -LogToEvent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Remove-SVSDeploymentRegKey {
|
||||
|
||||
Reference in New Issue
Block a user