Sometimes you may need to fresh install your operating system for some reasons or the other. In that case, all the apps running on the computers will be erased. If you have copious numbers of applications installed in your computer, then you would definitely want to have the list of the applications installed in your computer. The list will help you keep record of all the essential apps from your computer and you can install them whenever you want. However, there is a PowerShell script that can ease your job. The script creates a list of the apps running on your machine and save it in the C drive. You have to move the list from C drive to another location. It can be your USB flash drive, cloud, another drive etc.

select user

Here we will show you how to get the list of apps using PowerShell scrips.

1. First of all, download the Get a List of Installed Application from computers (PowerShell) script via the link here.

2. Next, rename file so that ‘PowerShell’ doesn’t appear in the script’s name, or in the name of the folder where the script is located. The PowerShell script required is a PSM1 file. You have to import the module.

3. Now open Cortana. Type PowerShell and open it with administrative rights.

4. Now write the script to import path to the PSM1 file.

import-module “path to file”

The command will look like this;

import-module C:\Users\nick\Downloads\GetInstalledApplicationInfo\GetInstalledApplicationInfo\GetInstalledApplicationInfo.psm1

If PowerShell prompts you that scripts are blocked by the Execution Policy, then you must stop and edit the PowerShell Execution Policy before you can import the module.

5. The next step involves getting the list of installed apps. Open the PSM1 file using Notepad. It will tell let you know all the functions the script adds to PowerShell.

6. In this case, it adds the following function which provides the list of apps on a local or remote system.

7. Next, run the following command

Get-OSCInstalledApplication

You will be asked​ to enter the name of the computer you want to get the list of installed apps for. Enter the name of your own computer and get a list of apps installed on it or simply enter the name of a network computer. The script lets you enter multiple computer names and provides you with the list of apps.

The list is saved as a CSV file if you enter the following command:

Get-OSCInstalledApplication -ComputerName "Computer Name" | Export-Csv -Path C:\installedApps.csv

If you are working with multiple machines, you can import the name of the computers from a CSV file. Use the following command:

Get-OSCInstalledApplication -ComputerFilePath C:\Script\ComputerList.csv

That’s all!

About 

Happiness is that best therapy. Use it to heal yourself and then others!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.