Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Subject: Re: Shutdown 1.7-1 problem when w2k screen is locked
Date: Mon, 2 May 2005 10:26:40 -0400
Message-ID: <B744015F9200AA49B4E03549EED88B98A8E801@SCHMLVEM01.e2k.ad.ge.com>
From: "Wheeler, Frederick W \(Research\)" <wheeler@crd.ge.com>
To: <cygwin@cygwin.com>
X-OriginalArrivalTime: 02 May 2005 14:24:44.0264 (UTC) FILETIME=[AF8CA680:01C54F22]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j42EP4mZ004447


> On Apr 29 09:27, Wheeler, Frederick W (Research) wrote:
> > 
> > I have found that when I "Lock Computer" in Windows 2000 just after running "shutdown --exitex 10"
> > then the computer does not shut down.  Nothing happens.  The command just exits.
> > 
> > When the computer is not locked, "shutdown --exitex 10" does a complete shutdown and power off.
> > 
> > If I lock the computer right after running "shutdown 10" (no --exitex) then the computer does shutdown,
> > but does not power off.  I get the "It is now safe to turn off your computer" screen.  I get the same
> > behavior from "shutdown 10" even if the computer is not locked.
>
> If the Workstation is locked, you must add the -f (or --force) flag to
> force the system to shut down.  At least that's documented for XP.  If
> it doesn't work for 2K, I don't know how to workaround it.  There's no
> such thing as an UnlockWorkstation function, AFAICS.
> 
> Corinna

Using --force makes shutdown work in 2K, even if the computer is locked.  I can't believe I missed that.
Thanks for pointing it out.

Thanks,
Fred Wheeler

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


