Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vendors:microsoft:wmi [2021/03/22 11:27] – [Query] gerardorourke | vendors:microsoft:wmi [2021/03/22 17:13] (current) – [Query] gerardorourke | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Windows Management Interface (WMI) ====== | ====== Windows Management Interface (WMI) ====== | ||
| + | |||
| + | ==== Better option than below === | ||
| + | https:// | ||
| + | |||
| + | However neither WMI or CimInstance w32_program will retrieve ALL your programs installed. Only programs installed with an MSI show up. | ||
| + | So not ideal! Here is a way using Registry. | ||
| + | |||
| + | https:// | ||
| ====Query==== | ====Query==== | ||
| + | |||
| + | < | ||
| + | Get-CimInstance -ComputerName (Get-Content C: | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| < | < | ||
| wmic os get csname, | wmic os get csname, | ||
| Line 11: | Line 28: | ||
| Microsoft Windows 10 Pro N W10-TEST | Microsoft Windows 10 Pro N W10-TEST | ||
| </ | </ | ||
| - | |||
| ====Query==== | ====Query==== | ||
| + | |||
| + | |||
| < | < | ||
| - | === Same (truncated) Response === | + | === Sample |
| < | < | ||
| Caption | Caption | ||
| Line 27: | Line 45: | ||
| Python 3.8.0 Core Interpreter (32-bit) | Python 3.8.0 Core Interpreter (32-bit) | ||
| Python 3.8.0 pip Bootstrap (32-bit) | Python 3.8.0 pip Bootstrap (32-bit) | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== TEMP ==== | ||
| + | |||
| + | < | ||
| + | Get-CimInstance -ComputerName ucce-lab-hds-a Win32_OperatingSystem | Select-Object Caption, CSDVersion, ServicePackMajorVersion, | ||
| + | Get-CimInstance -ComputerName ucce-lab-hds-a Win32_product | Export-Csv -NoTypeInformation -Path C: | ||
| + | |||
| </ | </ | ||