2
0
tcse-deploy/Patches/Windows/Update-TCSE-Deploy.bat
2024-12-17 14:01:13 -06:00

19 lines
758 B
Batchfile

# Download TCSE Deploy Archive
curl -L https://gitea.tcse.us/tricounty/tcse-deploy/archive/main.zip --output C:\Scripts.zip
# Extract Archive to C:\Scripts & Remove Zip
powershell Expand-Archive -Path 'C:\Scripts.zip' -DestinationPath 'C:\Scripts'
timeout /t 30
# Cleanup Archive
Move-Item -Path 'C:\Scripts\tcse-deploy\*' -Destination 'C:\Scripts'
timeout /t 15
# Remove Leftovers
powershell Remove-Item -Path 'C:\Scripts.zip'
powershell Remove-Item -Path 'C:\Scripts\tcse-deploy'
powershell Remove-Item -Path 'C:\Scripts\Software\Office2016'
powershell Remove-Item -Path 'C:\Scripts\Software\RemoteAgent64-TCSE.exe'
powershell Remove-Item -Path 'C:\Scripts\Software\gcpwstandaloneenterprise64.exe'
powershell Remove-Item -Path 'C:\Scripts\Autounattend'