Couple of things could be causing the issue. 1) If the shutdown is not
forced and as a result is prompts to inform the system is being shutdown
- this would fail unless the AT scheduled command is set to Interactive.
Another issue is related to the API call the script shutdown command is
making. If it uses ExitWindowsEx then this will fail on Windows 2003
scheduled tasks as the shutdown command needs to use the API
InitiateSystemShutdownEx API. 

Cheers

David


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Medeiros, Jose
Sent: 11 May 2005 01:27
To: [email protected]
Subject: RE: [ActiveDir] Shutdown script not working.

Hi Alex, 

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.

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. 

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.

Jose :-)

------------------------------------------------------------------------
--------------------------
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Alex Fontana
Sent: Tuesday, May 10, 2005 5:10 PM
To: [email protected]
Subject: RE: [ActiveDir] Shutdown script not working.


I don't think you're ever gonna get SYSTEM to shutdown any system but
it's local one - it has no authority on any system but itself.  Only
thing I can think of is throwing some credentials into the script your
writing that does have the authority over other machines, but then your
asking for it...
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Medeiros, Jose
Sent: Tuesday, May 10, 2005 3:42 PM
To: [email protected]
Subject: RE: [ActiveDir] Shutdown script not working.
 
Hi Marcus, 
 
I tried adding the system account to the local security policy that
allows it to shutdown the systems and using the interactive option in
scheduling the batch job and changing the task scheduler to also use the
interact with the desktop option and my script still would not run. 
 
Jose :-)
 
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, May 10, 2005 2:30 PM
To: [email protected]
Subject: RE: [ActiveDir] Shutdown script not working.
I'm not sure if my mail threading is all jacked up in Outlook... so
excuse me if someone answered this already.  Schedule the cmd.exe to
start in interactive mode through the AT command.
 
marcus c. oh
.\directory & systems management\cox com
.\mvp\windows server systems\management
[v] 404.847.6117                [c] 404.391.7097 



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

How do you open a command prompt as localsystem?

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/




------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.

------------------------------------------------------------------------

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/

Reply via email to