Thank you for your reply Steve, I am well aware of the fact that Task Scheduler allows you to specify an account to be used to run the task. However it still does not explain why running the script using the AT command on a NT 3.51 or a NT 4.0 server works by default.
Can you explain the diffrences between the security subsytem on a 2000 / 2003 server as to why such a script can not run by default? Thank you in advance! Jose Medeiros MCP+I, MCSE, NT4 MCT Former Vice President NTEA www.ntea.net www.sfntug.org www.tvnug.org --------------------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steve Rochford Sent: Wednesday, May 11, 2005 3:01 AM To: [email protected] Subject: RE: [ActiveDir] Shutdown script not working. > Thank you for your reply. I am not sure if you read the > entire thread. My script runs fine on a NT 4 server scheduled > with the AT command. It works with out a glitch if I launch > it manually from a command window while I am logged in on a > 2000 or 2003 server, and it runs correctly if I schedule it > using " Task Scheduler " on a 2000 or 2003 server. When you use Task Scheduler you have to put in a username/password - presumably you're putting in a username with rights to shutdown a remote server. > The problem I am having is, It does not work if I try and > schedule it on a 2000 or 2003 server if I use the AT command. When you use AT you don't put in an explict username/password; instead it uses the one specified in the service control app; unless you've changed it, this will be LocalSystem - this doesn't have rights to shutdown a remote server. > I know that this may seem trivial, since it works using the " > Task Scheduler ", but just for the sake of curiosity and for > my own better under standing, I would like to try and solve > how I can make it run using the AT command. Change the account under which the Task Scheduler service runs to the one which can shutdown remote systems (ie Start | Settings | Control Panel | Admin Tools | Services. Find Task Scheduler, look at properties, and on the logon tab put in a username and password) Steve List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
