この記事は2008/03/05にわんくまブログで書いたものです。
インストールされているアプリの一覧を取得するにはWMIオブジェクトの win32_product を使用します。
Get-WmiObject win32_product
リモートコンピュータのインストール済みアプリ一覧の取得は -computerName パラメータを使用して
Get-WmiObject -computerName リモートコンピュータ名 win32_product
とします。
ただし、 win32_productは Windows VistaとWindows 2003 Server にはありません。
正確にはWindows 2003 ServerはWMIプロバイダを追加することで使用できるようになるらしいです。
OSごとに、使用可能なWMIオブジェクトが異なるのは、進化していく上で必要なことなんでしょうが.....
んー、Vistaや2003 Serverでwin32_productに代わるものってなんでしょう?
Theme design by Jelle Druyts
Pick a theme: BlogXP business calmBlue Candid Blue dasBlog dasblogger DirectionalRedux Discreet Blog Blue Elegante essence Just Html MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2 BlogXP business calmBlue Candid Blue dasBlog dasblogger DirectionalRedux Discreet Blog Blue Elegante essence Just Html MadsSimple Mobile Mono Movable Radio Blue Movable Radio Heat nautica022 orangeCream Portal Project84 Project84Grass Slate Sound Waves Tricoleur useit.com Voidclass2
Powered by: newtelligence dasBlog 2.0.7226.0
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2009, HIRO
E-mail