Description
Retrieves installed software details from the localhost or a specified system using WMI, optionally authenticating with a username and password
Overview
This PowerShell script retrieves a list of installed products from a specified system using WMI (Win32_Product). It supports two authentication methods:
- Impersonation (default) using the current user’s credentials.
- Explicit authentication using a provided username and password.
If credentials are supplied, they are securely converted and used to authenticate the remote query. The script then retrieves product details (Name, Version, Description, InstallDate) and attempts to convert the InstallDate to a DateTime format before outputting the results.
Parameters
| Name | Type | Description |
|---|---|---|
| Target | string | The IP address or hostname of the system to query. Default is ‘localhost’. |
| Username | string | The local or domain username to authenticate with. Required in the "Username and Password" parameter set. |
| Password | string | The password for the specified user. Required in the "Username and Password" parameter set. |
