Question Get Software and name Desktop
- Gabriel
- Auteur du sujet
- Hors Ligne
- Nouveau membre
-
Réduire
Plus d'informations
- Messages : 1
- Remerciements reçus 0
il y a 1 an 2 mois #32174
par Gabriel
Get Software and name Desktop a été créé 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
$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.
- ageofempiresz
- Hors Ligne
- Membre senior
-
Réduire
Plus d'informations
- Messages : 44
- Remerciements reçus 1
il y a 1 an 2 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?
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.
- ericlm128
- Hors Ligne
- Membre elite
-
Réduire
Plus d'informations
- Messages : 169
- Remerciements reçus 35
il y a 1 an 3 semaines #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

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.038 secondes
- Vous êtes ici :
-
Accueil
-
forum
-
PowerShell
-
Entraide pour les initiés
- Get Software and name Desktop