Microsoft KB Archive/816813

= You Cannot Programmatically Shut Down Windows When You Log Off the Computer =

Article ID: 816813

Article Last Modified on 10/26/2006

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 3
 * Microsoft Windows 2000 Service Pack 3

-





SYMPTOMS
When you programmatically shut down Windows (for example, by using the Shutdown.exe Windows 2000 Resource Kit utility), and then log off the computer, Windows does not shut down successfully.

Additionally, when you next press CTRL+ALT+DELETE, the Log On to Windows dialog box does not appear.



CAUSE
This behavior occurs because when you manually log off the computer, the shutdown process is canceled from the IntiateSystemShutdown function. The shutdown notification from Winlogon is sent to the WinsrvNotify code but is discarded because of an incorrect logic process.



Hotfix Information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites
You must have Windows 2000 Service Pack 3 (SP3) or later to install this hotfix. For additional information about how to obtain the latest Windows 2000 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

Restart Requirement
You must restart your computer after you apply this hotfix.

Hotfix Replacement Information
This hotfix does not replace any other hotfixes.

File Information
The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date        Time  Version         Size    File name -  11-Jun-2003 19:01 5.0.2195.6738    42,256 Basesrv.dll 17-Jan-2003 16:06 5.0.2195.6656  236,304 Cmd.exe 11-Jun-2003 19:01 5.0.2195.6660  233,232 Gdi32.dll 11-Jun-2003 19:01 5.0.2195.6741  711,440 Kernel32.dll 11-Jun-2003 19:01 5.0.2195.6751  333,072 Msgina.dll 08-Apr-2003 05:54 5.0.2195.6701   90,232 Rdpwd.sys 11-Jun-2003 19:01 5.0.2195.6688  403,216 User32.dll 11-Jun-2003 19:01 5.0.2195.6745  385,808 Userenv.dll 02-Jun-2003 21:26 5.0.2195.6751 1,628,816 Win32k.sys 29-May-2003 23:25 5.0.2195.6750  181,520 Winlogon.exe 11-Jun-2003 19:01 5.0.2195.6752  243,984 Winsrv.dll 11-Jun-2003 19:01 5.0.2195.6741  711,440 Kernel32.dll 11-Jun-2003 19:01 5.0.2195.6751 1,628,816 Win32k.sys 11-Jun-2003 19:01 5.0.2195.6752  243,984 Winsrv.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
For additional information about how hotfix packages are named, click the following article number to view the article in the Microsoft Knowledge Base:

816915 New Naming Schema for Microsoft Windows Hotfix Packages

Keywords: kbbug kbfix kbqfe kbwin2000presp5fix kbhotfixserver KB816813

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.