+ Post New Thread
Results 1 to 2 of 2
Scripts Thread, adding a task to windows scheduler in Coding and Web Development; ive got this script Code: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\" & strComputer & "\root\cimv2") Set ...
  1. #1

    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    3,198
    Thank Post
    321
    Thanked 314 Times in 219 Posts
    Rep Power
    125

    adding a task to windows scheduler

    ive got this script

    Code:
    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

  2. #2

    Join Date
    Apr 2007
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: adding a task to windows scheduler




SHARE:
+ Post New Thread

Similar Threads

  1. Sphos Scheduler Error
    By TechSupp in forum Windows
    Replies: 1
    Last Post: 5th October 2007, 09:07 PM
  2. Replies: 4
    Last Post: 15th December 2006, 01:14 PM
  3. Sad news - Task-IT
    By GrumbleDook in forum General EduGeek News/Announcements
    Replies: 4
    Last Post: 15th December 2006, 12:16 AM
  4. got some places one task it course
    By russdev in forum General EduGeek News/Announcements
    Replies: 7
    Last Post: 24th March 2006, 10:19 AM
  5. Task timeframes.
    By Jake in forum How do you do....it?
    Replies: 8
    Last Post: 6th January 2006, 01:16 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •