Local System should have rights to shutdown the local machine unless someone took away the administrator group's rights to shutdown the machine. Doing it remotely would require granting shutdown privs for the machine account of the machine running the AT service on the security policy of the remote machine.
 
  joe 
 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Jessop
Sent: Tuesday, May 10, 2005 1:53 PM
To: [email protected]
Subject: Re: [ActiveDir] Shutdown script not working.

A script run under the user context of the account that invokes it.
Commands invoked by the at command use the user context specified in services (as Alain pointed out), which is by default Local System

So if you use the at command you have two possibilities.
1) Change the 'Log on as' for the Task Scheduler to another user context
2) Add the necessary user right to Local System Account (provided you do not need access to another machine.)

To invoke a script under another user context you can use the runas command.

Reply via email to