diff --git a/samy.ps1 b/samy.ps1 index d29a219..d754563 100644 --- a/samy.ps1 +++ b/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 {