Re: Shutdown.exe fails when computer is locked

From: Rob (everhart@yahoo.com)
Date: 02/24/03


From: "Rob" <everhart@yahoo.com>
Date: Mon, 24 Feb 2003 14:11:11 -0800


Eric - thanks a bunch.
-Rob
>-----Original Message-----
>C:\>shutdown -r -t 0 -m \\computername
>computername: The machine is locked and can not be shut
down without the
>force option.(1271)
>
>Add -f (i.e. force to your command line)
>
>--
>Eric Perlin [MS]
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>---
>
>"Rob" <everhart@yahoo.com> wrote in message
>news:01ed01c2dc07$ef8d1e80$8ef82ecf@TK2MSFTNGXA04...
>> Hi,
>> I am trying to run "shutdown.exe -s" as a scheduled
task
>> on XP Home. If I turn off the screen saver it works,
but
>> if the PC is locked, it doesn't shutdown, although the
log
>> indicates successful completion. I read that this was a
>> problem that was resolved w/WIN2K in the "ExitWindowsEx"
>> function. Does anyone know if there is a resolution for
>> XP?
>> Thanks,
>> -Rob
>
>
>.
>



Relevant Pages

  • Re: Shutdown.exe fails when computer is locked
    ... computername: The machine is locked and can not be shut down without the ... Add -f (i.e. force to your command line) ... This posting is provided "AS IS" with no warranties, ... > indicates successful completion. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Constants for catch return values?
    ... code, because it's rare that you need both codes (so most people would probably end up doing it most of the time anyhow to hide those ugly numbers, or not doing it and putting up with the numbers to hide that ugly second command), and having to "re-process" the code into a token is both annoying ) and confusing to someone unfamiliar with the second command. ... It could easily be applied to other commands as well, and extended to support your own lists of tokens. ... and I can't see it ever taking any (there's only so many ways you can convert a bunch of arguments into a TCL list representing exactly that bunch of arguments). ... out-of-range values should just be passed ...
    (comp.lang.tcl)
  • Re: File association works on one machine and not another
    ... your suggestion echo %ComputerName%> c:\test.txt". ... If I use "echo" in the command, I simply get returned to the ...   echo %ComputerName%> c:\test.txt ...
    (microsoft.public.win2000.general)
  • Re: Constants for catch return values?
    ... ugly second command), and having to "re-process" the code into a token ... your own lists of tokens. ... representing exactly that bunch of arguments). ...
    (comp.lang.tcl)
  • Re: Help with system seeming to return too soon...
    ... So to solve this problem I have to parse the vpnenv.sh script to ... extract all the environment variables that are being set? ... (FYI - vpnenv.sh is not simply a bunch of name=value pairs.) ... the command is finished? ...
    (comp.lang.perl.misc)

Quantcast