Windows Server Update Service Not installing due to WSUSService and Performance Counters

Today whilst installing a new WSUS server on a 2008R2 Standard server for a client I came across a new error I had not seen before, basically WSUS install got part of the way through and then threw up the error: “Windows Server Update Service 3.0 SP2 could not install WSUSService and the Performance Counters”

To be honest this was a quick fix, basically it in my case came down to entirely the performance counters, which is about a 5 minute check and a 30 second fix

First we want to open RegEdit and check the “Counter” entry under ” HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib” and then compare it to the last number value in Counter under “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009 “. In this case 009 is the locale ID for english, and therefore 009 would be different for other locales

In my case this was all ok, however if it is not you may need to make sure that you have not disabled the Performance Counters, looking under “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib” see if you have the “Disable Perforamance Counters” setting, if it is missing, then do not worry it simply means that they are enabled and never have been disabled (the entry is only generated once the counters have been disabled for the first time). If the key is set (has a value of 1) then turn it off (set it to 0)

Once this is done you need to rebuild the counters, this is thankfully easy to do from the command line, simply open an administrative command prompt and type the following

cd %systemdir%\system32
lodctr /R

The first command uses the SystemDir Environmental Variable and the System32 path to drop you into the system 32 directory (Normally C:\Windows\system32, but will change depending on install location, the environmental variable will change so it always points to the correct directory). The second command tells the counters to Rebuild the entries from scratch, alternatively if you have a backup of the perf counters (generated by the lodctr /s:<;filename>; command) you can load it with lodctr /R:<;filename>;

As I said, takes longer to do the checks than it does to apply the fix (isn’t that always the case)


OSX Lion, Printers not working due to Authentication CUPS Fix

  1. Delete the problematic printers using your preferred method
  2. Open CUPS on the local machine ( http://localhost:631 )
  3. Click on the “Administration” tab on the top of the page
  4. Click the “Add Printer” button
  5. Select, “Windows printer via spoolss”, click continue
  6. In the connection box enter
  7. Click Continue
  8. On the Next Screen enter details for the printer (Name, Location etc), Cick Continue
  9. Select Brand and Model of Printer, Click Add Printer
  10. Print Test Page
%d bloggers like this: