From 74e1c3cc30433348a8105068b68f09a6d3d3f495 Mon Sep 17 00:00:00 2001 From: scarrington Date: Thu, 16 Jan 2025 10:39:41 -0600 Subject: [PATCH] Added Task Schedule Creation to Deply Script --- TCSE-Computer-Deploy.bat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TCSE-Computer-Deploy.bat b/TCSE-Computer-Deploy.bat index 060a136..b59f633 100644 --- a/TCSE-Computer-Deploy.bat +++ b/TCSE-Computer-Deploy.bat @@ -86,6 +86,11 @@ echo Copying Login Scripts to All Users... powershell Copy-Item 'C:\Scripts\TCSE-Login.vbs' 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup' echo Successfully Copied Login Scripts... +:: Add Scheduled Tasks +echo Adding Scheduled Tasks to the System... +powershell -ExecutionPolicy Bypass -File "C:\Scripts\Windows\Add-System-Sched-Task.ps1" +echo Successfully Added System Scheduled Task at Login for All Users... + :: Remove Leftovers powershell Remove-Item -Path 'C:\Scripts\Software\Office2016' -Recurse -Force powershell Remove-Item -Path 'C:\Scripts\Software\RemoteAgent64-TCSE.exe'