Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU

Bienvenue sur mon blog il est destiné à l'actualité et aux scripts sous Windows PowerShell. Windows Powershell Scripts assure l'administration, la gestion et l'automatisation des logiciels Microsoft et différents partenaires.

Publicité

List Inventory Applications Install

La class Win32_Product contient les informations des packages Windows Installer MSI installés.
                 

Inventaire logiciels Microsoft installés sur une machine :

get-wmiobject win32_product -computer home001 | where-object { $_.vendor -like "Microsoft*" }

 
Ecrire le résultat dans un fichier txt et csv :            
                                          
get-wmiobject win32_product -computer home001 | where-object { $_.vendor -like "Microsoft*" } > "c:\Inventory.txt"

get-wmiobject win32_product -computer home001 | where-object { $_.vendor -like "Microsoft*" } | export-csv "c:\Inventory.csv"


Inventaire logiciels installés sur une machine :

get-wmiobject win32_product

Inventaire logiciels installés sur une machine . Ecrire le résultat dans un fichier htm. Exporter au format xml :     
            

get-wmiobject win32_product -computer home001 | convertto-html name,vendor,version -title "Applications Install" -body "List Applications Install Computer"  > "c:\ApplicationInstall.htm"

get-childitem c:\ApplicationInstall.htm | export-clixml c:\ApplicationInstall.xml

                              
Inventaire logiciels Microsoft installés sur plusieurs machines. Ecrire dans un fichier csv :
                                         
get-content "c:\computername.txt" | foreach { get-wmiobject win32_product -computername $_ } | where { $_.vendor -like "*Microsoft*" } | export-csv "c:\Inventory.csv" -notypeinformation


Hotfix installés sur une machine. Ecrire dans un fichier txt :
      

get-hotfix -computer home001 > "c:\Hotfix.txt"

Information du bios sur une machine :

Get- wmiobject -class Win32_bios -computername home001

Information sur la version OS installé sur une machine :

Get-wmiobject -class Win32_OperatingSystem -computername home001  

 

 

 

 

 

 

 

 

Publicité
Retour à l'accueil
Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article