Microsoft KB Archive/916142

= Error message when you try to scan a client computer by using System Management Server 2003 Inventory Tool for Microsoft Updates (Scanwrapper.exe): &quot;GetFileAttributes failed&quot; =

Article ID: 916142

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2003

-





SYMPTOMS
When you try to use the Inventory Tool for Microsoft Updates (Scanwrapper.exe) in System Management Server (SMS) 2003 to scan a client computer for update applicability or for update compliance, the scan may not run. Additionally, an error message that is similar to the following may be logged in the Scanwrapper.log file on the client computer:

Checking [C:\WINNT\system32\VPCache\ \c:\winnt\system32\wuaueng.dll] with VersionString=[5.8.0.2469].

ERROR: GetFileAttributes failed for C:\WINNT\system32\VPCache\ABC00101\c:\winnt\system32\wuaueng.dll with GetLastError=[123].

Note In the error message,  represents the SMS package ID for the Inventory Tool for Microsoft Updates scan package.

The \c:\winnt\ reference that appears in this error message indicates that this is the problem because of the incorrect joining of the two path strings.



CAUSE
This problem occurs when the value for the %Windir% environment variable starts with a lowercase letter. For example, a lowercase drive letter in &quot;c:\windows&quot; provokes the error message that is mentioned in the &quot;Symptoms&quot; section. Alternatively, &quot;C:\windows&quot; does not provoke the error message.



WORKAROUND
To work around this problem, modify the %Windir% environment variable to start with an uppercase letter on the client computer so that the computer starts.

Note Changes to the %Windir% environment variable may not take effect until you restart the computer.

To modify the %Windir% environment variable, follow these steps:
 * 1) On the client computer, click Start, click Run, type sysdm.cpl, and then click OK.
 * 2) In the System Properties dialog box, click the Advanced tab, and then click Environment Variables.
 * 3) Under System Variables, click windir, and then click Edit.

Note You may have to move the scroll box next to the list to see this entry.
 * 1) In the Variable value box, capitalize the first letter, and then click OK. For example, change &quot;c:\windows&quot; to &quot;C:\windows.&quot;
 * 2) Click OK to close the Environment Variables dialog box, and then click OK to close the System Properties dialog box.
 * 3) Restart the computer to make sure that the new environment variable takes effect.



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

Keywords: kbexpertiseinter kbtshoot kbpending kberrmsg kbbug kbsmsinventory kbprb KB916142

-

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

© Microsoft Corporation. All rights reserved.