General discussion

Locked

Using the AT command

By The Gun Doctor ·
I have created several batch files to perform various backup duties and scheduled them using the AT command. I have two batch files that backup the back end of my database over the network...when I run the batch file manually (from the cmd promt orby double clicking) it works like a charm, but when I use the AT command it won't work over the network. I know I'm using the AT command correctly because I have 12 other operations that take place locally and they all work. Why can't I run a known good batch file over my network using AT? Any help or maybe a good tutorial would be welcome.

Scott

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Using the AT command

by The Gun Doctor In reply to Using the AT command

More vital info: WinNT 4.0 Server with SP6a on all machines. NT Domain, and a user is logged in on the machine running the at command (so that it has network access).

Collapse -

Using the AT command

by Astute In reply to Using the AT command

The AT command in NT runs under the SYSTEM account and therefore has no privileges to the network resources. (i.e. Can't write or read a file from the network). But if you go into Control Panel - Services - Scheduler and change the "Log On As" to a user that has the appropriate permissions (a user with access to the network , pls make sure u type the user names and domain as "user\domain" once i had hard time when I forgot domain field in the login field :)), then an AT command that runs can actually use the network.

Good luck

Collapse -

Using the AT command

by The Gun Doctor In reply to Using the AT command

Poster rated this answer

Collapse -

Using the AT command

by Ewing Bettles In reply to Using the AT command

The AT command is made available at the command line through an NT service, originally the "Schedule Service". It is this service that is actually executing the scheduled jobs. By default, the service is installed to log in using the Local System account and as does not have any privaleges to external network resources. You can reconfigure the Schedule Service, through the Control Panel Services Applet, to startup and login using a different, network user account. Make sure the account has Logon As Service rights using User Manager, Policies, User Rights... (check Show Advanced User Rights). Once properly configured, the Schedule Service should properly execute network jobs.

BUT, just when you think you've got it all figured out they change the rules on you. If you have installed Internet Explorer 5 or later, the Schedule Service is replaced by the Task Scheduler service. This service MUST use the Local System account to logon with. Using the Task Scheduler service is quitedifferent that using the Schedule Service. You still have the option to create and view jobs using the comand-line AT command, but it is not recommended. The recommended way is to use the new Scheduled Tasks GUI applet that can be found either in the Control Panel or Windows Explorer. Each job created and managed using this GUI can be set to logon with its own specific user account - one job might use the local system account while another might use a local user account, and yet another might use an account that is a member of the Domain Admins group.

You can get more info by searching the Microsoft Knowledge Base:

http://search.support.microsoft.com/kb/c.asp
(make sure there's no spaces in link)

for the following articles:
Q235536
Q236773
Q196731

Hope this helps, -Ewing

Collapse -

Using the AT command

by The Gun Doctor In reply to Using the AT command

You just helped me turn what was a rather confusing task into a 15 minute job. Thanks for your help

Scott

Collapse -

Using the AT command

by The Gun Doctor In reply to Using the AT command

This question was closed by the author

Back to Windows Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums