Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20

Thread: Task scheduler won't execute vbs

  1. #16
    Join Date
    Dec 2009
    Posts
    2

    Re: Task scheduler won't execute vbs

    I have a similar problem. Server 2008 x86. I have a scheduled task (user is logged off) .cmd file that runs a net time command on a remote machine and puts the output in a text file. Then it does a cscript on a .vbs that opens excel and writes information about the remote machine to the spreadsheet.

    This has been working for several years under XP and server 2003, but under 2008, the the .vbs to run excel will not run with the user logged off.

    Any help would be appreciated

  2. #17
    Join Date
    May 2009
    Posts
    2,865

    Re: Task scheduler won't execute vbs

    It might be possible that you have got the profile corrupted and that is why you are getting the issue with the same if this is the case then i will advise you to create a new profile and see whether this is working with the issue of yours or not. After creating the new profile just copy the old file to the new profile and run the task scheduler to run the .vbs file.

  3. #18
    Join Date
    May 2011
    Posts
    2

    Re: Task scheduler won't execute vbs

    I had the same problem and resolved it.

    I believe that the task failsbecause the scheduled task doesn't know how to execute the .vbs. That is, at a command prompt you normally would use:

    cscript.exe program.vbs or wscript.exe program.vbs

    Therefore:

    For Win2k+ in the task you put "c:\windows\system32\cscript.exe c:\folder\program.vbs" instead of just "c:\folder\program.vbs".

    For windows 2008+, you just put "c:\windows\system32\cscript.exe" as the program and "c:\folder\program.vbs" as the parameter to be passed to it.

  4. #19
    Join Date
    May 2011
    Posts
    2

    Re: Task scheduler won't execute vbs

    Maybe UAC is getting in the way?
    Is there a problem in Win 2003?

  5. #20
    Join Date
    Feb 2011
    Posts
    97

    Re: Task scheduler won't execute vbs

    Well I want you to use this command : “cscript yourscript.vbs” and see how the things goes I hope that you will not face any issues further. And also the main thing here is that there is nothing to deal with UAC which you have mentioned.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 5
    Last Post: 29-09-2011, 01:03 PM
  2. Task Scheduler
    By StevenSchmid in forum Windows Software
    Replies: 3
    Last Post: 11-05-2010, 12:43 AM
  3. Task scheduler - anyone??
    By Jay in forum Vista Help
    Replies: 6
    Last Post: 04-11-2009, 05:49 AM
  4. Can't get MS Task Scheduler to run
    By 5201man in forum Windows Software
    Replies: 1
    Last Post: 07-05-2008, 02:17 PM
  5. Delete task from Task Scheduler
    By Jimbo in forum Vista Help
    Replies: 2
    Last Post: 05-03-2008, 09:41 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,387,193.06593 seconds with 16 queries