From c1a3c0b72387719c454d332ab1e62d0fcede0d74 Mon Sep 17 00:00:00 2001 From: bschaper Date: Tue, 17 Dec 2024 15:48:19 -0600 Subject: [PATCH] Added Recursive Force --- TCSE-Computer-Deploy.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TCSE-Computer-Deploy.bat b/TCSE-Computer-Deploy.bat index 8e442b8..fdc229c 100644 --- a/TCSE-Computer-Deploy.bat +++ b/TCSE-Computer-Deploy.bat @@ -85,9 +85,9 @@ powershell Copy-Item 'C:\Scripts\TCSE-Login.vbs' 'C:\ProgramData\Microsoft\Windo echo Successfully Copied Login Scripts... :: Remove Leftovers -powershell Remove-Item -Path 'C:\Scripts\tcse-deploy' +powershell Remove-Item -Path 'C:\Scripts\tcse-deploy' -Recurse -Force powershell Remove-Item -Path 'C:\Scripts.zip' -powershell Remove-Item -Path 'C:\Scripts\Software\Office2016' +powershell Remove-Item -Path 'C:\Scripts\Software\Office2016' -Recurse -Force powershell Remove-Item -Path 'C:\Scripts\Software\RemoteAgent64-TCSE.exe' powershell Remove-Item -Path 'C:\Scripts\Software\gcpwstandaloneenterprise64.exe'