Default Reasoning

Construction of sensible guesses when some useful information is lacking and no contradictory evidence is present…

  • Subscribe

  • Disclaimer

    This blog is personal. The views and opinions expressed here represent my own and not those of the people, institutions or organizations that I may or may not be related with unless stated explicitly. All blog post, white papers and manuals were written during the projects, mostly at a customer site and are scenario specific. Use at your own risk.
  • Meta

Archive for the ‘Windows XP’ Category

Windows XP clients disappear from the WSUS console.

Posted by Marek.Z on 19 October 2009

A few days ago I came across a strange issue with some Windows XP clients and Windows Update Server Services 3.0. The XP client PC’s were mysteriously disappearing from the Update Services Management Console. For example, when one client made a connection to the WSUS server to check for new updates, the other one will disappear from the console. This behavior could be replicated when running the C:\>wuauclt /detectnow command on one of the affected client PC’s. In my case the problem occurred to clients that were installed from a clone image. The master image of the Windows XP clients was probably updated through WSUS and then cloned, leaving the registration entries in the register. Here is a small script that I used to correct this: 

REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientIdValidation /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f
net stop wuauserv
rmdir /s /q c:\windows\softwaredistribution
net start wuauserv
wuauclt /resetauthorization /detectnow

Copy and paste this script to a batch or cmd file and run it on the affected client PC’s. This should resolve the problem.

Tested on Windows XP Service Pack 3.

Cheers!

 - Marek

Posted in Microsoft, Windows XP | Leave a Comment »

Create your own custom events in the event log.

Posted by Marek.Z on 3 July 2009

Did you ever wonder how to add some custom events to your computer system or application log? I always have but never really had the time to look it up. I was browsing the Windows Server 2008 command reference guide at Microsoft TechNet Windows Server TechCenter and I found the EventCreate.exe command. So, let’s give it a try.

C:\>EventCreate.exe /L Application /T Success /SO Script /ID 1 /D “The script completed successfully”

This command will create a success event with ID 1 from the source script in the Application log of your local machine and the description will be “The script completed successfully”.

Type EventCreate.exe /? at the command prompt for more options. You can even send events to remote computers! This is a great way to implement some error logging to your scripts. Tested on Windows XP, Vista and Server 2008.

Cheers! :)

Posted in Microsoft, Tools & Utilities, Windows Server 2008, Windows Vista, Windows XP | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 429 other followers