delete CSCE folder

This commit is contained in:
2025-11-28 19:47:45 -05:00
parent 3c0b904c9e
commit ae5bcb677c

View File

@@ -373,6 +373,16 @@ $ConfirmPreference = 'None'
Write-LogHybrid "Failed to remove SVSMSP from session: $($_.Exception.Message)" "Error" "SVSModule" -LogToEvent 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 { function Remove-SVSDeploymentRegKey {