Re: Shutdown.exe fails when computer is locked

From: Eric Perlin [MS] (ericperl@microsoft.com)
Date: 02/24/03


From: "Eric Perlin [MS]" <ericperl@microsoft.com>
Date: Mon, 24 Feb 2003 11:42:51 -0800


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
    ... Eric - thanks a bunch. ... >computername: The machine is locked and can not be shut ... >Add -f (i.e. force to your command line) ... >> indicates successful completion. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Force mount with HPUX 11.00 when Block Read Error
    ... posting I was able to mount the volume using '-F hfs -f' as you said. ... I just wonder why I couldn't find your forum response using google, ... > but that does not seem to work anymore. ... >> command usage help of the mount command. ...
    (comp.sys.hp.hpux)
  • Re: subinacl to remove unknown sids
    ... If 2008 run the command prompt, even with the administrator account, with "run as". ... Meinolf Weber ... Disclaimer: This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windows.server.active_directory)
  • RE: migrate profile
    ... I recommend that you try a Windows 2000 Server Resource Kit tool, ... You can use the following command. ... "moveuser UserAAA DomainName\UserBBB /k" ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windows.server.migration)
  • 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)

Quantcast