Added Task Schedule Creation to Deply Script
This commit is contained in:
parent
b9e5155a76
commit
74e1c3cc30
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user