Re: Way to force shutdown of a PC from a script that is run when Windows first starts up?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Clay Calvert (ccalvert_at_Wanguru.com)
Date: 02/28/04


Date: Sat, 28 Feb 2004 13:24:50 -0500

On Sat, 28 Feb 2004 11:08:08 -0500, Gary White <gbw48@comcast.net>
wrote:

>I know the shutdown code works. I've tested it while I've been logged
>on. It shuts down the machine every time. I know that the shutdown
>code was executed. I saw a test message. that I put after the
>shutdown code. Yet the PC will not shutdown!
>
>I think the problem is that I have the wrong permissions, but I'm
>unsure how to fix the problem.
>
>Any thoughts and script samples would be greatly appreciated.
>Thanks in advance. ...Gary White

Startup scripts run in the context of the System account. Does the
System account have rights to shutown the PC? I got bit by this last
week.

Clay Calvert
CCalvert@Wanguru.com
Replace "W" with "L"



Relevant Pages

  • Re: Minlogin
    ... FTP is always a good choice especially if you want to copy file to the ... > NT Authority or System or Administrator. ... The system account by default does not have shutdown priviledge. ...
    (microsoft.public.windowsxp.embedded)
  • Re: ERROR: unable to write header file
    ... System is shutdown from the SYSTEM account ... Sho config and sho devices all looks OK ... > The dump file is not related to the error log dump file. ...
    (comp.os.vms)
  • How to use planned tasks ?
    ... I have administrator privilages on my system (its a home computer), ... need to set up to shutdown at the for example 3pm. ... says to system account there is no need to give a password... ...
    (microsoft.public.windowsxp.general)
  • Shutdown.exe
    ... >When scheduling a reboot using AT from a commandline, ... >shutdown /r does not work. ... >interactive cmd prompt shows "The system could not find ... The System account has Full NTFS permissions to ...
    (microsoft.public.windows.server.general)