Event ID 2000 — Network Performance Counter Availability
Applies To: Windows Server 2008
Network Performance Counters are collected and used by services and applications. If they are installed incorrectly or with improper permissions, those services or applications cannot collect or interpret the data.
Event Details
Product: | Windows Operating System |
ID: | 2000 |
Source: | Microsoft-Windows-PerfNet |
Version: | 6.0 |
Symbolic Name: | PERFNET_UNABLE_OPEN_NETAPI32_DLL |
Message: | Unable to collect Browser performance data beause the NetApi32.DLL failed to load. The first four bytes (DWORD) of the Data section contains the status code. |
Diagnose
This error might be caused by one of the following conditions:
- The Workstation service is not running
- The Server service is not running
- The Remote Registry service is not running on a remote system
- The File and Printer Sharing firewall exception is not enabled on a remote system running Windows Vista
- The application is running as a user with insufficient privileges
- The list of counters is corrupt
If a Windows system error code containing four or five digits is included, you can find the explanation of the error code on the Web at https://go.microsoft.com/fwlink/?LinkID=83027. This information can help you identify the correct resolution.
The Workstation service is not running
The Redirector service that is part of the Workstation service is required for proper functioning of Network Performance Counters on a workstation.
Membership in the target system's local Administrators group is required to view service settings.
To check the status of the Workstation service:
- On the target system, click Start. In the Start Search text box, type compmgmt.msc, and then press ENTER. Microsoft Management Console will start.
- In the navigation tree, expand Services and Applications and click Services.
- In the Services list, scroll down and click Workstation.
- Check if the status of the Workstation service is Started. If it is not, follow the steps in Restart the Workstation service to resolve the issue.
The Server service is not running
The Server service is required for proper functioning of Network Performance Counters on a server.
Membership in the target system's local Administrators group is required to view service settings.
To check the status of the Server service:
- On the target system, click Start. In the Start Search text box, type compmgmt.msc, and then press ENTER. Microsoft Management Console will start.
- In the navigation tree, expand Services and Applications and click Services.
- In the Services list, scroll down and click Server.
- Check if the status of the Server service is Started. If it is not, follow the steps in Restart the Server service to resolve the issue.
The Remote Registry service is not running on a remote system
In order to collect performance counters remotely, the Remote Registry service must be running on the destination system.
Membership in the destination system's local Administrators group is required to change service settings.
To check if the Remote Registry service is running:
- On the destination system, click Start.
- In the Start Search text box, type compmgmt.msc, and then press ENTER. Microsoft Management Console (MMC) will start.
- In the navigation tree, expand Services and Applications and click Services.
- In the Services list, scroll down and click Remote Registry.
- Check to see if the status of the Remote Registry service is Started. If it is not, follow the steps in the section titled "Enable the Remote Registry service" to resolve the error.
The File and Printer Sharing firewall exception is not enabled on a remote system running Windows Vista
On systems running Windows Vista, the File and Printer Sharing firewall exception must be enabled on the destination system.
Membership in the destination computer's local Administrators group is required to change firewall settings.
To check File and Printer Sharing firewall exception settings:
- On the destination system, click Start and then click Control Panel.
- In the Control Panel search box, type firewall.
- In the search results, double-click Windows Firewall.
- In Windows Firewall, click Change settings.
- On the Exceptions tab, check to see if File and Printer Sharing is selected. If it is not, follow the steps in the section titled "Enable the File and Printer Sharing firewall exception on a remote system running Windows Vista" to resolve the error.
The application is running as a user with insufficient privileges
To view performance counters, a user must be a member of the local Performance Monitor Users group, Performance Log Users group, Administrators group, or equivalent. Applications that run as a user or system account with insufficient privileges may not be able to load performance counters correctly. Follow the steps in the section titled "Run the application as a user with sufficient privileges" to identify a resolution.
The list of counters is corrupt
If the performance counter could not unload the strings for the specified service, the registry might be corrupted. To correct this problem, follow the steps in the section titled "Rebuild the list of available counters."
Resolve
To resolve this issue, use the resolution that corresponds to the cause you identified in the Diagnose section. After performing the resolution, see the Verify section to confirm that the feature is operating properly
Cause |
Resolution |
---|---|
The Workstation service is not running |
Restart the Workstation service |
The Server service is not running |
Restart the Server service |
The Remote Registry service is not running |
Enable the Remote Registry service |
The File and Printer Sharing firewall exception is not enabled on a remote Windows Vista system |
Enable the File and Printer Sharing firewall exception on a remote system running Windows Vista |
The application is running as a user with insufficient privileges |
Run the application as a user with sufficient privileges |
The list of counters is corrupt |
Rebuild the list of available counters |
Restart the Workstation service
Membership in the target system's local Administrators group is required to change service settings.
To restart the Workstation service:
- On the target system, click Start. In the Start Search text box, type compmgmt.msc, and then press Enter. Microsoft Management Console will start.
- In the navigation tree, expand Services and Applications and click Services.
- In the Services list, right-click Workstation, and then click Start.
Note: The Workstation service should be configured to start automatically. If the Startup Type is blank or Manual, you should change its startup type to avoid encountering the same error after the system restarts.
To change the Workstation service startup type:
- On the target system, click Start. In the Start Search text box, type compmgmt.msc, and then press Enter. Microsoft Management Console will start.
- In the navigation tree, expand Services and Applications and click Services.
- In the Services list, right-click Workstation, and then click Properties.
- On the General tab, select Automatic in the Startup type drop-down list.
- Click OK.
Restart the Server service
Membership in the target system's local Administrators group, or equivalent, is the minimum required to change service settings.
To restart the Server service:
- On the target system, click Start. In the Start Search text box, type compmgmt.msc, and then press Enter. Microsoft Management Console will start.
- In the navigation tree, expand Services and Applications and click Services.
- In the Services list, right-click Server, and then click Start.
Note: The Server service should be configured to start automatically. If the Startup Type is blank or Manual, you should change its startup type to avoid encountering the same error after the system restarts.
To change the Server service startup type:
- On the target system, click Start. In the Start Search text box, type compmgmt.msc, and then press Enter. Microsoft Management Console will start.
- In the navigation tree, expand Services and Applications and click Services.
- In the Services list, right-click Server, and then click Properties.
- On the General tab, select Automatic in the Startup type drop-down list.
- Click OK.
Enable the Remote Registry service
Membership in the target system's local Administrators group is the minimum required to change service settings.
To enable the Remote Registry service:
- On the target system, click Start.
- In the Start Search text box, type compmgmt.msc, and then press Enter. Microsoft Management Console will start.
- In the navigation tree, expand Services and Applications and click Services.
- In the Services list, rightclick Remote Registry, and then click Properties.
- In the Startup type drop-down list, click Automatic, and then click OK.
- If the service does not start automatically, right-click Remote Registry in the services list, and then click Start.
Enable the File and Printer Sharing firewall exception on a remote system running Windows Vista
Membership in the target system's local Administrators group is required to change firewall settings.
To enable the File and Printer Sharing firewall exception:
- On the target system, click Start, and then click Control Panel.
- In the Control Panel search box, type firewall.
- In the search results, double-click Windows Firewall.
- In Windows Firewall, click Change settings.
- On the Exceptions tab, click the File and Printer Sharing check box.
Run the application as a user with sufficient privileges
By default, an application runs with the same privileges as the user who started it. You can configure services to run as the local system account or as a specific user. You can also start an application as Administrator, but in Windows Vista or Windows Server 2008 with User Account Control enabled, you must confirm that you want to start the application each time it runs if it is configured to run as Administrator.
Consider running services that collect performance counter data as the local system account to resolve privilege issues.
If for security reasons you do not want to run the application or service as the local system account, you can add the user the application runs as to the Performance Log Users group and assign the group the Log on as a Batch Job user right to enable performance counter collection each time the application runs.
Membership in the destination computer's local Administrators group is required to complete these procedures.
Add a user to the Performance Log Users group
To add a user to the Performance Log Users group:
- Click Start, click in the Start Search box, type compmgmt.msc, and then press ENTER.
- Expand System Tools, expand Local Users and Groups, and click Groups.
- In the list of groups, right-click Performance Log Users, and then click Add to Group.
- On the General tab, click Add.
- Type the name of the user you want to add, or click Advanced to search the directory for a user.
- When you have finished adding users, click OK, and click OK again to close the Performance Log Users property page.
Assign the Log on as a batch job user right to the Performance Log Users group
In order for members of the Performance Log Users group to initiate data logging or modify Data Collector Sets, the group must first be assigned the Log on as a batch job user right. To assign this user right, use the Local Security Policy snap-in in Microsoft Management Console (MMC).
To assign the Log on as a batch job user right to the Performance Log Users group:
- Click Start, click in the Start Search box, type secpol.msc, and then press ENTER. The Local Security Policy snap-in will open in Microsoft Management Console.
- In the navigation pane, expand Local Policies and click User Rights Assignment.
- In the console pane, right-click Log on as a batch job and then click Properties.
- In the Properties page, click Add User or Group.
- In the Select Users or Groups dialog box, click Object Types. Select Groups, and then click OK.
- Type Performance Log Users in the Select Users or Groups dialog box, and then click OK.
- Click OK again to close the property page.
Rebuild the list of available counters
Membership in the local Administrators group is required to complete this procedure.
To rebuild the list of counters in the registry:
- Click Start, expand All Programs, and expand Accessories.
- Right-click Command Prompt, and then click Run as administrator.
- At the command prompt, type lodctr /r, and then press ENTER.
Verify
You can use Windows Reliability and Performance Monitor to verify that netowkr performance counters are properly collected and displayed in a Performance Monitor graph. In addition, you can use the typeperf command to get a list of the available counters on the local system.
Membership in the local Administrators group is required to complete these procedures.
View counters in Performance Monitor
To view counters in Performance Monitor:
- On the computer where you want to view counters, click Start. In the Start Search text box, type perfmon.exe, and then press ENTER.
- In the navigation pane, expand Monitoring Tools, and then click Performance Monitor.
- Click the Add button to open a list of available performance counters.
- In the Add Counters dialog box, you can click Help for more information on adding counters. When you have finished adding counters to the list, click OK.
- Verify that the performance counters you selected are displayed in the Performance Monitor graph.
View a list of counters using the typeperf command
To view a list of counters at the command prompt:
- Click Start, click All Programs, and click Accessories. Right-click Command Prompt, and click Run as administrator.
- At the command prompt, type typeperf -qx and press ENTER.
- Verify that the performance counter list contains expected values.