Gorgo.Live.ToString()

Mariusz, Gorzoch tech Blog

Archive for the ‘Tip&Trick’ Category

Get me the list of installed HotFixes

leave a comment »

My today post will be connected to the previous one and it is about how to enumerate all installed HotFixes in the system. Few days ago I came across strange problem with SharePoint and as a result of my search I found that it can be resolved only thru instllation of one special HotFix. Sound quite easy?!?!… yes you can say it is, but how to findout if particular KB is not already installed in the system. And here we get to the point! How to do it ? Lucky if you are using PowerShell this is really ease task with use of WMI object called "Win32_QuickFixEngineering". The main point is to create query to this object and get the list of installed HotFixes:
 
$hf = get-wmiobject -class "Win32_QuickFixEngineering" -namespace "root\CIMV2"
 
now variable $hf contain array of all installed hot fixes. Each entry in this array contain structure like this:
 
Caption             :
CSName              : WHMPPLGDN0057
Description         :
FixComments         :
HotFixID            : File 1
InstallDate         :
InstalledBy         :
InstalledOn         :
Name                :
ServicePackInEffect : KB896358
 
and to check if particular KB/HotFix is installed we just need to filter array items by field "HotFixID". With use of PowerShell this can be done by:
 
$hf | where-object { $_.HotFixID -eq "KB896423" }
 
if you get some result, then particular HotFix/KB is installed on your computer (in my case I’m checking if KB896423 is installed) and if not, it means it is not installed.
Advertisements

Written by Mariusz Gorzoch

11 June 2009 at 22:18

Posted in Tip&Trick

I need this hotfix

leave a comment »

From time to time each of us need to obtain some critical patch/hotfix for the system we are mainting or using. Usually if such a patch is not avialiable for public we need to find a link/page where we can ask for it. Then we fill the form and get an-emil from where we can get the file.
What about if we could speed up this process a little bit ? What about a custom search provider for our Internet Explorer ? Hire you can find few simple step to do so:
1. Go to IE and find a search box on the top-right site
2. Click the down arrow to the right of the search button and choise "Find more providers". This should open new page for you where you can choose from existing providers or
3. choose the option to create "new search provider"
5. in the name field put "HotFix search"
6. click Install (this will create new entry on the search box drop down list called "HotFix search"
 
and you are done, now you can spend more time waching your favorite TV show:
 
 
have fun

Written by Mariusz Gorzoch

10 June 2009 at 13:30

Posted in Tip&Trick