timbo343 Posted March 29, 2007 Posted March 29, 2007 ive got this script strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNewJob = objWMIService.Get("Win32_ScheduledJob") errJobCreated = objNewJob.Create _ ("%windir%\system32\rundll32.exe user32.dll, LockWorkStation", "********000000.000000-000", _ False , LockTest) Wscript.Echo errJobCreated but i want to edit it, so that till will make the settings change to when idle... as at the mo it is set to run once. Anyone know what the code is? T
AlexReed Posted April 3, 2007 Posted April 3, 2007 For example, you can try to take a look it this scripts: http://techtasks.com/code/viewbookcode/368 http://techtasks.com/code/viewbookcode/562 http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/taskscheduling/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now