Page 1 of 1 1
Topic Options
#102656 - 2003-07-09 05:43 AM Ability to restart XP when no user is logged on
Gaven Offline
Starting to like KiXtart
*

Registered: 2003-06-19
Posts: 103
Loc: Washinton DC, USA
This stems from my post Automatic shut down

I believe I have identified a glitch in Windows XP. I have noticed that in all versions prior to XP, a shutdown or restart command can easily be sent to a computer that is sitting at the logon prompt and the computer will respond. It would appear that while an XP computer will comply when a user is logged on, it will only comply with a shutdown command if no user is logged on and NOT a restart command. Any ideas out there?

Top
#102657 - 2003-07-09 05:57 AM Re: Ability to restart XP when no user is logged on
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
When I was trying this the night you originally posted, I was getting the same error. And like you already observed, i stripped the script down to the bare minimum (basically just a shutdown command) and it still failed (believe I was getting error 53 ?!) ... also tried the shutdown.exe command and no worky ...

There is something in Windows XP that is blocking or denying the shutdown but cant for the life of me figure it out ... we have a similar scheduled job running under Windows NT ... just does a shutdown/restart at 2:00am every morning but it runs under the AT scheduler not task scheduler ... would be interested in knowing if this same problem appears under the AT command on Windows XP. If yes (or no) not sure what that would say or mean ...

-Shawn

Top
#102658 - 2003-07-09 06:27 AM Re: Ability to restart XP when no user is logged on
Gaven Offline
Starting to like KiXtart
*

Registered: 2003-06-19
Posts: 103
Loc: Washinton DC, USA
I know very little about the AT command. Does it run through the same service (Task Scheduler)? Nonetheless I will attempt and report back.
Top
#102659 - 2003-07-09 06:32 AM Re: Ability to restart XP when no user is logged on
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yeah i think it is ... I think the AT command under XP is just a crude skin to the Task Scheduler, im trying AT here on Xp and having no luck ... the job terminates with an ERROR status ... no code. Just running Shutdown.exe flat out ...
Top
#102660 - 2003-07-09 06:52 AM Re: Ability to restart XP when no user is logged on
Gaven Offline
Starting to like KiXtart
*

Registered: 2003-06-19
Posts: 103
Loc: Washinton DC, USA
I have the same results using AT. I'm going to do some digging on microsoft's web site.
Top
#102661 - 2003-07-09 06:59 AM Re: Ability to restart XP when no user is logged on
Gaven Offline
Starting to like KiXtart
*

Registered: 2003-06-19
Posts: 103
Loc: Washinton DC, USA
This is interesting...

You Cannot Schedule a Windows XP-Based Computer to Shut Down and Restart by Using the AT Command with Shutdown.exe

While this allows for the shutdown command to run under the system account, it still must be logged on.

[ 09. July 2003, 07:29: Message edited by: Gaven ]

Top
#102662 - 2003-07-09 08:17 AM Re: Ability to restart XP when no user is logged on
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Why are you using AT/WINAT with XP? Maybe it is "doable" but, why not use the Task Scheduler (built-in) or the JT.EXE that has been discussed here?

There are other shutdown utils other than SHUTDOWN.EXE too. For example, PSSHUTDOWN.EXE from Sysinternals. We have used PSSHUTDOWN with a scheduled task or AT/WINAT on many of our servers.

Thanks,

Kent

[ 09. July 2003, 08:19: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#102663 - 2003-07-09 04:45 PM Re: Ability to restart XP when no user is logged on
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It might also be possible to first authenticate with a user account against the remote comuter via WMI before issuing the shutdown command. This way the WMI process will run under user credential and not the default LocalSystem credentials. Relevant UDFs can be found in the UDF Forum.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1707 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.15 seconds in which 0.122 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org