Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Scheduled TaskContent of Create a Scheduled Task.vbsMD5 Hash: E617860DF5F6D3A740E4A1B3BCB0502C |
||
' Description: Schedules Notepad to run at 12:30 PM every Monday, Wednesday, and Friday.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNewJob = objWMIService.Get("Win32_ScheduledJob") errJobCreated = objNewJob.Create _ ("Notepad.exe", "********123000.000000-420", _ True , 1 OR 4 OR 16, , , JobID) Wscript.Echo errJobCreated | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |