Windows 2008 Perfmon Crashes - Reset User Defined Data Collector Sets

I discovered this very annoying bug in Windows Server 2008 when attempting to import an XML file with 100 serverswind2008 and counters in it.
No doubt one of the server had an issue and therefore and for some stupid reason, perfmon or Reliability And Performance Monitor, as its called now in 2008 is unable to handle this , and completely falls over.
Now, when you open Perfmon and try to view the User Defined Data Collector Sets, or run logman.exe from the command line, the application completely freezes and your unable to delete the corrupt dataset you just imported or even click elsewhere in the window.

In 2003, a reboot would fix this problem, but in 2008 it does not. The solution lies in the registry. Here’s how to fix the problem.

  1. Make sure your logged in as admin or with admin rights
  2. Close any open perfmon (Reliability and Performance Monitor) windows you have open.
  3. Click Start > Run then type  regedit hit enter
  4. Goto: HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Windows\PLA
  5. You will see your Data Collector Sets in here, delete the one you created that caused the problem (or just delete them all if your not sure) **NOTE** Dont delete the “System” folder.
  6. Your done now, re-open perfmon, or logman and your problem should be solved.
Thursday, May 28th, 2009 All Articles, Hardware, Tips & Tricks No Comments

SQL Replace Nulls With Blank String

Simple way to replace NULL values in your queries with blank strings by using the IsNull function.

This will allow for problem free string creation etc.

1
SELECT IsNull(ColumnName, '') As NewColumnName FROM TableName

More information can be found here: http://msdn.microsoft.com/en-us/library/ms184325.aspx

Friday, May 22nd, 2009 Coding, Tips & Tricks No Comments

VBScript To Pull Events From Event Log And Email To Yourself - Past 24 Hours

So, you want to see what events have occured on a server in the past 24 hours. Maybe you have a problematic server, throwing errors but your event log is so massive , its hard to sort through.

This script will sift through your entire event log, searching for any events in the past 24 hours that match your event code, it will save the results to a .TXT file , and then email them to you. v.handy


Read More - NO IE6!

Tags: , ,

Friday, May 15th, 2009 All Articles, Coding No Comments

VB.Net Forms Confirmation Box

How to create a simple confirmation box in a VB.Net WinForms application.    This will pop up a typical “Do You Wish To Continue ? ” Box , to which each button has a different action.


Read More - NO IE6!

Friday, May 15th, 2009 All Articles, Coding No Comments

Kill All Processes Of Certain Application In Unix/Linux

This is a very helpful command I use regularly.

If your like me, you open several instances of applications like “VI” and leave them in the background, most of the time without meaning to.  Eventually you run a “PS -U” to view all your processes running and realize that theres 10 copies of the application running in the background which you havnt closed. Heres a command to quickly clear that up.


Read More - NO IE6!

Wednesday, April 22nd, 2009 All Articles, Coding, Tips & Tricks No Comments

SteerMouse For Mac OSX

Hardest part about moving to a mac was Apples terrible mouse acceleration system and its highly in-accurate  USB rate … It basically made it impossible to do the graphic design work that I used to do on a PC.   Anybody coming from a PC to a mac that does any sort of accurate mouse work will know what im talking about . . . Steermouse fixes that problem and gets your mouse running smooth as silk  .. I highly recommend it ! http://plentycom.jp/en/steermouse/

Saturday, January 24th, 2009 All Articles, Tips & Tricks No Comments

Embedding XHTML Compliant Flash Files

All to often people all over the web use non-xhtml embedding on their sites.
Use the following code to embed fully XHTML 1.0 compliant flash objects.


Read More - NO IE6!

Tags: , ,

Tuesday, November 25th, 2008 All Articles, Coding No Comments

Importing VBS Files In Your VBScript Project

If you have certain functions you use over and over , why not compile them all into a single library file , and simply “Import” them into your new projects, like a real object oriented language does?.

If your one of those people that has a script to do everything , you may find the need to organise your functions and files necessary. You can use this method to store configuration options too.

Here’s how.


Read More - NO IE6!

Tags: ,

Friday, November 21st, 2008 All Articles, Coding 1 Comment

How To Convert Custom Date Format In VB.Net

Problem:

I want to convert my custom 12 hour date and time string into a proper 24 hour DateTime format.


Read More - NO IE6!

Tags: ,

Tuesday, November 18th, 2008 Coding 1 Comment

Help Me eMailbomb An eBay Scammer

So we’ve all seen it, but it still burns me up everytime.  You try to sell something on eBay,  you get creative with photoshop and attempt to make it all look pretty,  you list the thing for 9 days or so to get your money’s worth , and then you sit there each day watching the auction eagerly like an old man in a peep show.


Read More - NO IE6!

Tags: ,

Wednesday, November 5th, 2008 Blog No Comments