Now Available:

Featured Resource:

line

Newsletter

Email Address:


line

Ask the Expert

Have a question for our resident expert? Email your questions to Greg.

« Realtime e-Journal Teaser #3: Tips and Tricks for Rapidly Deploying Software | Main | Realtime e-Journal Teaser #5: Exchange Server Public Folders Return »

Realtime e-Journal Teaser #4: PowerShell and Hotfixes

This is one in a series of five teasers from the October issue of the Windows Administration in Realtime e-Journal. This is only a teaser. If you want to read the entire article -- and who wouldn't! -- sign up for your own free copy here.

HotFixes! Get your Red HotFixes!
By: Jeffery Hicks

Keeping servers and desktops up to date and patched seems like an endless chore. Getting computers updated isn't necessarily that difficult. But what about finding what has already been installed? Using Windows PowerShell and Windows Management Instrumentation (WMI), you can easily acquire this information. What's more, you can work with objects that make reporting very simple by using cmdlets such as Out-File and ConvertTo-HTML.

In Microsoft-speak, any patch or update is referred to as a hotfix. These updates are tracked in WMI using the Win32_QuickFixEngineering class. Querying this class in PowerShell is as easy as:

PS C:\> get-wmiobject win32_quickfixengineering

The class has several properties, some of which may be populated depending on the computer, operating system (OS), or hotfix. The more you work with this clas s, you'll discover a few quirks that are OS dependent. For example, the InstalledOn property should display the date when a hotfix was installed. On Windows XP or Windows Server 2003, this property value is very recognizable as a date. However, in Windows Vista, the date format is less user-friendly--do you know what date this is: 01c8e2c0a6cfee4e? I certainly didn't.

To make your job a little easier...

To read the rest, grab your e-Journal copy today!

TrackBack

TrackBack URL for this entry:
http://www.realtime-windowsserver.com/type/mt-tb.cgi/976

Post a comment

(All comments are approved by site leader before appearing here. Thanks for commenting!)

line

Greg Shields' Bio:

Greg Shields, is an independent author, instructor, and IT consultant based in Denver, Colorado, and a co-founder of Concentrated Technology. With nearly 15 years of experience in information technology, Greg has developed extensive experience in systems administration, engineering, and architecture specializing in Microsoft systems management, remote application, and virtualization technologies. Greg is a Contributing Editor for Redmond Magazine, MCPmag.com, and Virtualization Review Magazine and is the author of five books, including Windows Server 2008:  What’s New / What’s Changed. Greg is also a highly sought-after instructor and speaker, speaking regularly at conferences like TechMentor Events, and producing computer-based training curriculum for CBT Nuggets.  Greg is a recipient of Microsoft "Most Valuable Professional" award with a specialization in Windows Terminal Services.