How to use the ASP.NET ValidatePath Module Scanner (VPModuleScanner.js) (887290)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework 1.0)
- Microsoft .NET Framework 1.0
- Microsoft .NET Framework 1.0 SP1
- Microsoft .NET Framework 1.0 SP2
- Microsoft .NET Framework 1.0 SP3
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.1 Service Pack 1 (SP1)
- Microsoft .NET Framework SDK 1.0
- Microsoft .NET Framework SDK 1.0 SP1
- Microsoft .NET Framework SDK 1.0 SP2
SUMMARYMicrosoft has released the Microsoft ASP.NET ValidatePath Module Scanner (VPModuleScanner.js) file. The VPModuleScanner.js file tests a computer to determine if the ASP.NET ValidatePath Module is installed. The VPModuleScanner.js reports whether any of the following conditions are true:- The ASP.NET ValidatatePath module is installed on the scanned system.
- The ASP.NET ValidatatePath module is not installed on the scanned system.
- The installation status of the ValidatePath module could not be obtained for one of the following reasons:
- Microsoft Internet Information Services (IIS) is not installed on the scanned computer.
- ASP.NET is not installed on the scanned computer.
- The scan exeperienced an error while scanning the computer.
You can use the VPModuleScanner.js file with the VPMultimachineWrapper.js file to scan more than one computer.
For more information about how to look for canonicalization issues with ASP.NET, click the following article number to view the article in the Microsoft Knowledge Base:
887289
HTTP module to check for canonicalization issues with ASP.NET
For more information about how to determine the version of
ASP.NET, click the following article number to view the article in the Microsoft Knowledge Base:
318785
Determine whether service packs
are installed on the .NET Framework
Download information The
following file is available for download from the Microsoft Download
Center: Download the VPModuleScanner package now. Release Date: October 14, 2004 For additional
information about how to download Microsoft Support files, click the following
article number to view the article in the Microsoft Knowledge Base: 119591 How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
back to the
topKnown limitations and issues- You must have administrative access to run this tool
remotely or locally.
- You cannot specify credentials to run this tool. However,
you can use the run as command to start a command-line session that has the right
credentials.
For more information about the run as command, click the following article number to view the article in the Microsoft Knowledge Base:
294676
How
to enable and use the "run as" command when running programs in
Windows
- VPModuleScanner.js uses the Active Directory Service
Interfaces (ADSI) proxy to connect to a remote metabase. Therefore, the
computer that runs the script must have the IIS Common Files subcomponent
installed. Otherwise, the tool reports that IIS is not installed on the client
computer.
- This tool relies on a registry key to determine whether the
inner script timed out. Therefore, you must run only one instance of the tool
on each computer.
- With IIS version 6.0 only, the computer reports the status
of the ValidatePath module even if ASP.NET is disabled through the Web Service
Extension list.
- The scanner reports "ASP.NET not active" if Microsoft .NET
Framework is installed before IIS. In this case, IIS has no ASP.NET mapping and
the ASP.NET functionality cannot be used.
back to the
topTechnologies usedVPModuleScanner.js uses the following technologies that might be
disabled or limited in a corporate or datacenter environment:
- ADSI: VPModuleScanner.js uses DCOM to connect to the IIS
metabase.
- SMB shares to connect and retrieve files from a remote
admin share. Remote admin shares must be enabled.
- The COM component FileSystemObject (Scrrun.dll) must be
registered on the computer that runs the script. The FSO component is used to
open the Machine.config file on the remote file system. Certain security
policies recommend disabling this component on production IIS servers. For more
information about these policies, visit the following Microsoft Web sites:
back to the
topUsing the ASP.NET ValidatePath module scannerVPModuleScanner.js scans a computer that you specify for the
ASP.NET ValidatePath module. In enterprise environments where multiple
computers have to be scanned, you can use VPModuleScanner.js together with
VPMultiMachineWrapper.js. back to
the topVPMultiMachineWrapper.jsCommand-line switchesback to the topVPMultiMachineWrapper.js gathers a list of computers from either a
text file or through an LDAP query from Active Directory. When
VPMultiMachineWrapper.js has the complete list of computers, it starts a loop,
calling VPModuleScanner.js for every computer.
back to the topVPMultiMachineWrapper.js logs its debugging messages in the file
VPMultiMachineWrapper_Trace.txt. You can use the trace file if you need to
troubleshoot VPMultiMachineWrapper.js. VPModulesScanner.js logs its
debugging messages in the file VPModulesScanner_Trace.txt. You can use the
trace file if you need to troubleshoot VPModulesScanner.js. back to the topThe following is an example of how VPMultiMachineWrapper.js starts
VPModuleScanner.js: cscript //nologo //t:30 VPModuleScanner.js /o "c:\temp" Machine1 The following table explains the switches used:
//t:30 | time-out value, in this case 30 seconds,
supported by the script engine | /o "c:\temp" | specifies the output directory that
should be used | Machine1 | specifies the computer to be scanned | back to the topback to the topThe log files use the following format: DATETIME,SERVERNAME,NETFX_VERSION_STRING,MACHINESTATUS,PATCHSTATUS The following items describe the elements of this format:
- DATETIME specifies the date and time when the scan entry
was generated.
- SERVERNAME is the NetBIOS name or the IP address of the
scanned system.
- NETFX_VERSION_STRING is the .NET run-time version that is installed
on the scanned system. This entry is set to Unknown if the computer cannot be found.
- MACHINESTATUS is the computer status. The following
computer status strings are possible:
- IIS installed IIS and the .NET Framework are installed, and ASP.NET is enabled.
- IIS not installed on client computer The scanning computer (client) cannot scan because it is does not
have the IIS Common Files component installed.
- Error (errnumber: Error description) An error was reported while trying to connect to IIS or during
the scan.
- Config file not found The script determines the remote UNC path, but
cannot connect to the administrator share of the remote system. This occurs,
for example, if you turn off the Server Service on the remote computer or if the
administrator shares are disabled.
- PATCHSTATUS specifies whether the update has been installed. The following update status strings are
possible:
- Module not installed The computer does not have the ValidatePath httpModule installed.
- Module installed The computer does have the ValidatePath httpModule installed.
- Unknown status The status of the update could not be obtained.
The following are log entry examples:
- 10-5-2004 12:00:05 PDT,SERVER1,Unknown,
Unknown,Error(0x800A0046: Permission denied),Unknown status
The user who ran the script does not have administrative rights on the server. - 10-5-2004 12:00:06 PDT,SERVER2,v1.1.4322,IIS
installed,Module installed
VPmodule is installed on SERVER2. - 10-5-2004 12:00:07 PDT,SERVER3,v1.1.4322,IIS
installed,Module not installed
VPmodule is not installed on SERVER3.
You can use VPModuleScanner.js as an SMS script. The
following return codes are used to comply with SMS:
- 20000 VPmodule is not installed on the system.
- 20001 Machine.config cannot be found. IIS is not installed.
- 0 VPmodule is installed.
- <other> An error occurred that the above codes do not account
for.
The following are log file error messages in MACHINESTATUS:
- Error(0x800A01CE: The remote server machine does not exist or is unavailable) IIS is not installed on the scanned computer or the computer
that is specified is not responding.
- Error(0x800A0046: Permission denied) The user who is performing the scan does not have administrator rights
on the scanned computer.
- Error(0x80070424: ) Only the IIS Common Files component is installed on the scanned
computer.
- Unknown,Error(0x80070422: ) The IIS Administration Service is disabled.
back to the
topREFERENCES
For more information about LOGPARSER, click the following article number to view the article in the Microsoft Knowledge Base:
840671
The
IIS 6.0 Resource Kit tools
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
887405
How to use Windows Installer and Group Policy to deploy the VPModule.msi in an Active Directory domain
887404 How to use Systems Management Server 2003 to deploy the ValidatePath module
887787 You may receive error messages from Reporting Services after you install the ASP.NET ValidatePath Module
back to the
top
Modification Type: | Minor | Last Reviewed: | 6/10/2005 |
---|
Keywords: | kbSecurity ATdownload KB887290 kbAudITPRO |
---|
|
|
©2004 Microsoft Corporation. All rights reserved.
|
|