Microsoft KB Archive/820524

From BetaArchive Wiki

Article ID: 820524

Article Last Modified on 12/3/2007



APPLIES TO

  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Small Business Server 2003 Premium Edition
  • Microsoft Windows Small Business Server 2003 Standard Edition



SYMPTOMS

When you schedule your computer to shut down by using the Shutdown.exe command-line utility with the at command, the computer does not shut down. When the scheduled shutdown task starts, you may receive the following error message:

The system could not find the environment option that was entered.

CAUSE

This problem occurs in situations where Shutdown.exe cannot access the UserDomain environment variable. The shutdown task that is scheduled by using the at command runs under the System account. When the task is run under the System account, the UserDomain environment variable cannot be accessed because it does not exist.

RESOLUTION

Hotfix Information

A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

Prerequisites

No prerequisites are required.

Restart Requirement

You do not have to 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
   -----------------------------------------------------------
   15-May-2003  23:39  5.2.3790.25  27,648  Shutdown.exe     
   09-May-2003  05:07                  211  Branches.inf
   16-May-2003  01:05               10,091  Kb820524.cat
   15-May-2003  23:56                  354  Updatebr.inf
   15-May-2003  23:56                5,036  Update_rtmqfe.inf

WORKAROUND

To work around this problem, create a "dummy" UserDomain environment variable for use when you schedule a shutdown task by using the at command. To do so:

  1. Click Start, right-click My Computer, and then click Properties.
  2. Click the Advanced tab, and then click Environment Variables.
  3. Under System variables, click New.
  4. In the Variable name box, type UserDomain, type any value in the Variable value box, and then click OK.


Note You can type any value that you want to use in the Variable value box.

  1. Click OK, click OK, and then click OK.
  2. Restart the computer.


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 more information about the shutdown command, visit the following Microsoft Web site:

For more information about the at command, visit the following Microsoft Web site:


Additional query words: shutdown at schedule

Keywords: kbhotfixserver kbqfe kbbug kbfix kbqfe kbwinserv2003presp1fix KB820524