Quantcast
Channel: Blog Virtualizacion
Viewing all articles
Browse latest Browse all 679

Listar Software en Powershell

$
0
0

Listar Software en Powershell

Hay veces que necesitas saber rápidamente el software instalado en tu equipo Windows o simplemente están trabajando con servidores Windows Core y no tienes acceso a una interfaz GUI que te facilite la vida.

Hoy quiero mostraros varias formas de conseguir los programas instalados en vuestro sistema con Powershell. Como pasa siempre, hay varias formas de hacerlo.

Ahí van unos cuantos comandos Powershell:

gwmi  Win32_Product

listar-software-en-powershell-2

Mediante el comando gp:

gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | ? {![string]::IsNullOrWhiteSpace($_.DisplayName) } | select DisplayName

listar-software-en-powershell-3

Con WMI:

Get-WmiObject -Class Win32_Product | Select-Object -Property Name

listar-software-en-powershell-4

Si queremos sacar versiones:

wmic product get name,version

listar-software-en-powershell-5

Algo más elaborado para 32 bits:

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize

Y para 64 bits:

Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize

¿Te ha gustado la entrada SÍGUENOS EN TWITTER?

La entrada Listar Software en Powershell se publicó primero en Blog VMware y Citrix.


Viewing all articles
Browse latest Browse all 679