Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled Tasks - Running program from the network

Status
Not open for further replies.

BigFunkyChief

IS-IT--Management
Jan 22, 2004
115
US
I have been able to deploy a scheduled task to my Windows 2003 SBS network using the AT command (from the server, logged in as Administrator).

However, the only way I could get it to work was to deploy the .vbs script to each computer (in a stashed diretory) and have the scheduled task run the program locally.

This works:
at \\REMOTE-COMPUTERNAME 9:00 /interactive /EVERY:m c:\stash\monday.vbs

This does not:
at \\REMOTE-COMPUTERNAME 9:00 /interactive /EVERY:m G:\monday.vbs

and fails with this error in the AT Log:
"At4.job" (monday.vbs) 11/16/2006 3:15:51 PM ** ERROR **
Unable to start task.
The specific error is:
0x80070002: The system cannot find the file specified.
Try using the Task page Browse button to locate the application.

The G:\ is full read-write for everyone, I can run the script manually by executing from the G:\, and it's ok. Doubled checked the file permissions 1000 times.

This also fails:
at \\REMOTE-COMPUTERNAME 9:00 /interactive /EVERY:m \\REMOTECOMPUTER\SHARE\monday.vbs

with the error:
"At5.job" (monday.vbs) 11/16/2006 3:20:43 PM ** ERROR **
Unable to start task.
The specific error is:
0x80070002: The system cannot find the file specified.
Try using the Task page Browse button to locate the application.

Browsing for the file (like it suggests) is not an option since the properties of the job are all greyed out.

Anyone have any luck doing what I'm trying to do above?

Thanks in advance!


"Rule #1 - When stumped, check your Event Logs!
 
I haven't tried this type of operation. Is the G: drive mapped on the server that has the Scheduled Task setup? I'm wondering if it might be trying to find the VBS from the "issuing" machine. But, I guess that wouldn't explain why it cannot find the UNC path either.

Hope This Helps,

Good Luck!
 
I think part of your problem is the fact that the AT command will not work on network drives. It is designed to run under the context of a local system account. What you need to do is to create a domain account with the appropriate rights and then run SCHTASK.EXE (or use the Scheduled Tasks applet) to setup the job to run using this account. Hope this helps.

Regards

Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top