Microsoft KB Archive/926380

= FIX: The startup process and the logon process are slow on a computer that is running Windows XP and Windows Script Host when a script is written by using Visual Studio products =

Article ID: 926380

Article Last Modified on 11/13/2006

-

APPLIES TO


 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Express Edition
 * Microsoft Visual C# 2005 Express Edition
 * Microsoft Visual C# .NET 2003 Standard Edition
 * Microsoft Visual C# .NET 2002 Standard Edition
 * Microsoft Visual Basic 2005

-



SYMPTOMS
Consider the following scenario. A computer is running Microsoft Windows XP. The computer is also running Microsoft Windows Script Host (Wscript.exe). In this scenario, you notice that the startup process and the logon process are slow when you start the computer.

Note Microsoft Windows Script Host (WSH) is a language-independent scripting host for script engines that are compatible with Windows scripts. You use WSH to run scripts. WSH supports scripts that are written in Microsoft .NET Framework-based scripting languages such as Microsoft Visual C#, Microsoft Visual Basic Scripting Edition (VBScript), and JScript. Typically, you notice this problem when you try to migrate a script that runs on Microsoft Windows 2000 to run on Microsoft Windows XP.



CAUSE
This problem occurs because the WScript.exe process tries to locate the Wshenu.dll file. The Wshenu.dll file is a phantom file. A phantom file is a file that does not exist. However, the application still tries to locate the file.

The Sysinternals FileMon utility (Filemon.exe) monitors and displays file system activity on the computer in real time. When this problem occurs, multiple error messages that resemble the following are logged in the FileMon log file:

589 2:54:14 PM wscript.exe:2212 QUERY INFORMATION C:\WINNT\System32\wshENU.DLL NOT FOUND Attributes: Error

Note The network and the server receive these search requests because of the scripts that are running from the servers.



RESOLUTION
To resolve this problem, follow these steps:  Copy the following file to the \Temp folder:

\System32\Scrrun.dll

 In the \Temp folder, rename the Scrrun.dll file. Name it Wshenu.dll. Copy the Wshenu.dll file that is mentioned in step 2 to the \System32 folder.

Note The  placeholder represents the path of the Windows system folder. Typically, C:\Windows is the path of the Windows system folder.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about the FileMon utility, visit the following Microsoft Web site:

http://www.microsoft.com/technet/sysinternals/utilities/Filemon.mspx

Keywords: kbscript kbtshoot kbbug KB926380

-

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

© Microsoft Corporation. All rights reserved.