Home » 2012 » May » 08

Daily Archives: May 8, 2012

How to manually rebuild Performance Counters for Windows?

To rebuild all Performance counters including extensible and third-party counters in Windows, type the below commands at a command prompt.

cd\windows\system32

lodctr /R

Ensure that the counters are not disabled in the registry

The counters may be disabled via registry settings. Please check the following registry locations to ensure that the counters have not been disabled.

HKLM\System\CurrentControlSet\Services\%servicename%\Performance

%servicename% represents any service with a performance counter. For example: PerfDisk, PerfOS, etc.

There may be registry keys for “DisablePerformanceCounters” in any of these locations. This value should be set to 0. If the value is anything other than 0 the counter may be disabled.

A value of 1 means the counter is disabled.
A value of 2 means the 32-bit counter is disabled.
A value of 4 measn the 64-bit counter is disabled.

Thanks
WintelAdmin

How to Enable and disable NICs from command line?

Often when you are troubleshooting an issue with Windows Operating System, you would use the Command Prompt and there are scenarios were you would need to disable one of the NIC using command line, I often need this while troubleshooting with imaging issue. I’ve got the handy command.

C:\>wmic nic get name, index

you will find the output like
1 Broadcom NetLink (TM) Gigabit Ethernet
2 Broadcom NetLink (TM) Gigabit Ethernet #2
3 WAN Miniport (L2TP)
4 WAN Miniport (PPTP)
5 WAN Miniport (PPPOE)
6 WAN Miniport (IP)
7 Intel(R) WiFi Link 5100 AGN
8 WAN Miniport (Network Monitor)

Now, if you wish to disable “Broadcom NetLink (TM) Gigabit Ethernet #2”

Please execute the below command

C:\>wmic path win32_networkadapter where index=2 call disable

This should now disable the NIC “Broadcom NetLink (TM) Gigabit Ethernet #2”

Thanks
WintelAdmin


Visitors Count

Subscriber Count

    3980
May 2012
M T W T F S S
« Apr   Jun »
 123456
78910111213
14151617181920
21222324252627
28293031