From ae5bcb677c76d3e604e342304fb1a39a327865b8 Mon Sep 17 00:00:00 2001 From: syelle Date: Fri, 28 Nov 2025 19:47:45 -0500 Subject: [PATCH] delete CSCE folder --- samy.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 {