checking kb installed

P

powtrix

Hi, is possible I check if a KBxyz is installed on local machine?

possibles:
- check registry key (where they are)
- log --> %windir%\KB"xyz".log
-> any command returning 0 / 1 errorlevel.

doing that, i could update my machines remotly.
tks.
 
A

Ayush

[powtrix] wrote-:
Hi, is possible I check if a KBxyz is installed on local machine?

possibles:
- check registry key (where they are)
- log --> %windir%\KB"xyz".log
-> any command returning 0 / 1 errorlevel.

doing that, i could update my machines remotly.
tks.

DIR "%windir%\$hf_mig$\KBxxx" /ad >nul && echo KBxxx in installed
 
D

Dean Wells \(MVP\)

Among other solutions available (and depending upon your OS) -

wmic qfe

.... or more elaborate -

wmic qfe get hotfixid | find "930178" 1>nul && echo Installed || echo
Not installed [or error]!
 
D

Dean Wells \(MVP\)

I've not experienced that particular condition. In your shoes, I'd
first try and determine the state of the WMI repository, see -

winmgmt /salvagerepository

.... and depending on the results, perhaps use some of the other WINMGMT
switches to perform the actual repair.

--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l


Rich Pasco said:
For some reason when I invoke wmic (with any paramters) it does
nothing
(until I abort it with Ctrl-Break). Even the help command behaves
this way:

wmic /?

This should work, according to
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wmic.mspx

Any ideas?

- Rich


Among other solutions available (and depending upon your OS) -

wmic qfe

... or more elaborate -

wmic qfe get hotfixid | find "930178" 1>nul && echo Installed || echo
Not installed [or error]!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top