MSFN Forum: How to get a list of Office hotfixes installed? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to get a list of Office hotfixes installed? Rate Topic: -----

#1 User is offline   jean table 

  • Group: Members
  • Posts: 6
  • Joined: 22-June 05

Posted 22 June 2005 - 03:23 AM

Hi.
I'm trying to find a way to identify which hotfixes have been installed on a computer. I've searched the registry with no luck. I wonder if there would be a way through the use of WMI...
Any help greatly appreciated.
Thanks


#2 User is offline   rc00451 

  • Group: Members
  • Posts: 6
  • Joined: 12-July 04

Posted 22 June 2005 - 04:03 AM

Try this (copy and past in Notepad, save-as "hotfixes.bat")
Tested on NT4, W2K and XP.

Output can be redirected, eg "hotfixes >fixes.txt"



@ECHO OFF
ECHO.

:: Check command line parameter
IF NOT "%1"=="" IF /I NOT "%1"=="/V" GOTO Syntax

:: Check for correct Windows version
IF NOT "%OS%"=="Windows_NT" GOTO Syntax

:: Keep variables local
SETLOCAL

:: /V parameter set verbose display
IF /I "%1"=="/V" SET Verbose=1

:: Remove temporary file
IF EXIST "%systemdrive%\Hotfixes.dat" DEL "%systemdrive%\Hotfixes.dat"

:: Gather info from the registry
REGEDIT /E "%systemdrive%\Hotfixes.dat" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix"

:: Display header
ECHO Hotfixes installed on this PC:
ECHO.

:: Summarize all hotfixes gathered from registry
FOR /F "tokens=7 delims=\" %%a IN ('TYPE "%systemdrive%\Hotfixes.dat" ^| FIND "[HKEY_"') DO FOR /F "tokens=1 delims=]" %%A IN ('ECHO.%%a ^| FIND "]"') DO CALL :Summarize "%%A"

:: Done
ENDLOCAL
GOTO:EOF

:Summarize
SETLOCAL
SET Hotfix=%~1
:: No more details required
IF NOT "%Verbose%"=="1" (
ECHO.%Hotfix%
GOTO:EOF
)
:: Gather more details from the registry
REGEDIT /E "%systemdrive%\Hotfixes.dat" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\%~1"
:: Retrieve the hotfix description from the temporary file we just created
FOR /F "tokens=1* delims==" %%a IN ('TYPE "%systemdrive%\Hotfixes.dat" ^| FIND /I "Fix Description"') DO SET Description=%%~b
:: Escape brackets in the description, otherwise the ECHO command will fail
IF DEFINED Description SET Description=%Description:(=^^^(%
IF DEFINED Description SET Description=%Description:)=^^^)%
:: The whitespace in the following line is a tab
ECHO.%Hotfix% %Description%
ENDLOCAL
GOTO:EOF

:Syntax
ECHO Hotfixes.bat, Version 2.00 for Windows NT 4 / 2000 / XP
ECHO Displays a list of hotfixes installed locally
ECHO.
ECHO Usage: HOTFIXES [ /V ]
ECHO.
ECHO /V list both hotfix numbers and descriptions
ECHO.
ECHO Written by Rob van der Woude
ECHO http://www.robvanderwoude.com
GOTO:EOF

#3 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 22 June 2005 - 04:10 AM

Wmic qfe list full


Is that what you are looking for?

#4 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 22 June 2005 - 04:12 AM

BTW Full WMI class is Win32_QuickFixEngineering

#5 User is offline   jean table 

  • Group: Members
  • Posts: 6
  • Joined: 22-June 05

Posted 22 June 2005 - 04:34 AM

Thanks. That's a nice batch. But it lists Windows Hotfixes, not Office.

#6 User is offline   jean table 

  • Group: Members
  • Posts: 6
  • Joined: 22-June 05

Posted 23 June 2005 - 01:12 AM

Martin Zugec, on Jun 22 2005, 11:10 AM, said:

Wmic qfe list full


Is that what you are looking for?
<{POST_SNAPBACK}>


Thanks. I looked into it, but no, it's not what I'm looking for. It lists system hotfixes. Office patches are not present.
I'm getting deperate... :wacko:

#7 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 23 June 2005 - 01:18 AM

Oops, sorry... Well, I dont know about WMI class for Office, sorry :( Dont even think so there is something like this.

What do you need it for? Wouldnt MBSA be enough for you?

#8 User is offline   jean table 

  • Group: Members
  • Posts: 6
  • Joined: 22-June 05

Posted 23 June 2005 - 02:54 AM

Martin Zugec, on Jun 23 2005, 08:18 AM, said:

What do you need it for? Wouldnt MBSA be enough for you?
<{POST_SNAPBACK}>


I need it to make an inentory of hotfixes installed on our computers, so we know which needs what. This cannot be done automatically through MBSA.
But I might have found what I need here : http://office.microsoft.com/en-us/assistan...1402491033.aspx
When I look at the way this works, I understand why I haven't found it out all by myself.

#9 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 23 June 2005 - 03:05 AM

For your scenario is ideal to use WSUS + Detect Only on all machines. Simple to create and powerfull scenario, I used it when I need to detect what paches I need to approve

#10 User is offline   jean table 

  • Group: Members
  • Posts: 6
  • Joined: 22-June 05

Posted 23 June 2005 - 04:03 AM

Well... That won't be an option : We use Novell / Tivoli. Our computers are in workgroup, netbios disabled, no domain, no AD :blushing:
But I think I can manage something with these tools.

#11 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 23 June 2005 - 04:12 AM

You can use WSUS even if you dont have AD... It is distributed through reg files. I am using this option and it works well

#12 User is offline   jean table 

  • Group: Members
  • Posts: 6
  • Joined: 22-June 05

Posted 23 June 2005 - 08:45 AM

Alright, job done!
Using inventory.exe and then convert.exe enables me to create a .csv file with all the info I need.
Thanks for everyone's help!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy