Question Get Software and name Desktop

Plus d'informations
il y a 2 ans 1 mois #32174 par Gabriel
Hello I would like to know how to have two columns software installed and name of the pc thank you very much for the time you gave me $Path = "C:\Gabriel"
$LogPath = "C:\Gabriel"
Select Name,Directory,@{Name="Outlook";Expression={(Get-WmiObject -Class Win32_Product | where vendor -eq Outlook)}},
                      @{Name='Desktop';Expression={(Get-wmiobject win32_computersystem)}} | Export-Csv C:\Gabriel\Outlook.csv -NoTypeInformation

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 ans 1 mois #32177 par ageofempiresz
Réponse de ageofempiresz sur le sujet Get Software and name Desktop
Hello Gabriel,

I used Mobaxterm for my example, can you tell me if it's something like that?
$tab = @{ (Get-wmiobject win32_computersystem).Name = (Get-WmiObject -Class Win32_Product | where vendor -eq Mobatek).Name }
$tab
$tab.GetEnumerator() | Select-Object -Property @{Name="Desktop";Expression={$_.Key}},@{Name='Outlook';Expression={$_.Value}} | Export-Csv -NoTypeInformation "software.csv"

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 an 11 mois #32280 par ericlm128
Réponse de ericlm128 sur le sujet Get Software and name Desktop
An advice :)
I already had quite a problem with wmi queries on the win32_product class.

Microsoft even had acknowledgment of issues with msi products : docs.microsoft.com/en-us/troubleshoot/wi...red-all-applications

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.066 secondes
Propulsé par Kunena