Step1: Run the script in the Windows PowerShell Console, type the one command: Import-Module <Script Path> at the prompt.

For example, type Import-Module C:\Script\ GetInstalledApplicationInfo.psm1

This is shown in the following figure

Step 2: You can type thecommand Get-Help New-OSCInstalledApplication -Full to display the entire help file for this function, such as the syntax, parameters, or examples.


Example 1: Type Get-OSCInstalledApplication  -ComputerName “Server20120830”command in the Windows PowerShell Console.

This command will list installed application on ‘Server20120830’. 

Example 2: Type Get-OSCInstalledApplication -ComputerFilePath C:\Script\ComputerList.csv command in the Windows PowerShell Console.
Note: the CSV File format must follow the format below:

This command specifies the path to an item that contains several computers. Then ‘Get-OSCInstalledApplication’ cmdlet will list installed application from those computers.

Example 3: Type Get-OSCInstalledApplication -ComputerFilePath C:\Script\ComputerList.csv | Export-Csv C:\InstalledAppsList.csv command in the Windows PowerShell Console.

When the script finishes running, you can open the InstalledAppsList CSV file, the content of file as below: