Jump to content

Recommended Posts

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...