.
This commit is contained in:
parent
12d13e8c60
commit
256be5c210
@ -3,11 +3,8 @@ set TOOLS=c:\tools
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
echo removing all tasks in the task scheduler ...
|
||||
schtasks /delete /TN * /F
|
||||
|
||||
echo deleting folders in the task scheduler ...
|
||||
powershell -command %TOOLS%\scripts\cleanup-taskscheduler.ps1
|
||||
echo Disabling all tasks in the task scheduler ...
|
||||
schtasks /change /TN "*" /DISABLE
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
|
||||
$scheduleObject = New-Object -ComObject Schedule.Service
|
||||
$scheduleObject.connect()
|
||||
$rootFolder = $scheduleObject.GetFolder("\")
|
||||
$rootFolder.DeleteFolder("\Microsoft",$null)
|
||||
|
Loading…
Reference in New Issue
Block a user