Getting a quick list of system information and software installed on a device can be challenging. As some will know from my work with SCCM that I love that application but it is cumbersome and sometimes too large of a tool for the job. That is why we have built the Get System Info Module. Within the module are commands used to gather information about the OS, Hardware and software installed on a local or remote device. Depending on the command being used the command will query the Registry or WMI in order to gather the information then return the information as a PowerShell Object allowing for full manipulation of the data.
This will gather the software that was installed and registered with WMI this method doesn't require WinRM but will not always return all software installed on a system
This will use the registry to gather the installed software on a target system.
Version 3.2.5
How To Install
The module can be downloaded from our PowerShell Gallery Page or directly in the PowerShell Console by running the below commandInstall-Module -Name GetSystemInfo
Requirements
When using a command that uses the registry to gather information on a remote computer the WinRM Service must be running on the target computer. If WinRM is not running you can enable it by runningGet-Service WinRM -ComputerName| Start-Service
How To Use
Get-SystemInfo
The first command in the module is Get-SystemInfo, This command show information about the OS and the hardware installed on the system. This command only uses WMI to gather the information.
Example 1
Get-SystemInfo -ComputerName
Get-SystemSoftware
The second Command is Get-SystemsSoftware this command will gather the software installed on the target system via WMI or Registry depending on the Query Type chosen.
Example 1
Get-SystemSoftware -ComputerName-QueryType WMI
This will gather the software that was installed and registered with WMI this method doesn't require WinRM but will not always return all software installed on a system
Example 2
Get-SystemSoftware -ComputerName-QueryType Registry
This will use the registry to gather the installed software on a target system.
Get-InstalledDotNet
This command uses the registry to retrieve the versions of .net framework installed on a system. All though the version is displayed this is not always the exact version of .net that is why the release number is also displayed by looking up this number you can get the exact version of .net.
Example 1
Get-InstalledDotNet -ComputerName
Notes
More information can be found for each command by running
Get-Help-Full
Changes
3.2.5
- Added the link to this site
3.2.4
- Fixed an issue that would not show application installed under the SYSWOW64 registry when searching a local computer
3.2.3
- Updated the module to work in PowerShell 6.0 core
Comments
Post a Comment