List SCCM Application Deployments Using PowerShell Script

List SCCM Application Deployments Using PowerShell Script – This post is about getting the list of SCCM application deployments using PowerShell script. The script lists the names of applications, software version and number of deployments as output.

There might a huge list of applications that are deployed using SCCM. However if you want to get the list of apps and track the deployments, this script will help you. You have to import the Configuration Manager PowerShell module.

The easiest way to get the list of SCCM applications is using PowerShell. The script also exports the output to a .csv file. You can open this output file using Microsoft Excel.

List SCCM Application Deployments Using PowerShell Script

So let’s see what the script does. The below script uses Get-CMApplication command to fetch the list of applications and it’s properties. However If you just type Get-CMApplication in the PowerShell, you will get a list of applications and it’s properties as output.

However you will find it difficult to understand the output because it lists many properties. The import-module imports Configuration Manager module into PowerShell. In addition to import the module you will have to specify the path to the Configuration Manager Module. The path is usually “C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1“.

The next command is Set-Location where you specify your site code. The next command is $FilePath where you define the file name and it’s path. This is the file that contains the output. So specify the file with .csv extension. The last command is Get-CMApplication command. Here we filter the output with selected objects and export the output to the specified file path.

List SCCM Application Deployments Using PowerShell ScriptCopy the below code and create a new text document. Paste the code in the text document and rename it with filename.ps1 extension. Launch the PowerShell and run the script.

PowerShell script to list all the application deployments
Import-Module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1' 
Set-Location P01: 
$FilePath = "C:\powershellscripts\test.csv" Get-CMApplication | Select-Object LocalizedDisplayName,SoftwareVersion,NumberOfDeployments | Export-CSV $FilePath

In conclusion here is how the output looks.
List SCCM Application Deployments Using PowerShell Script

Prajwal Desai

Hi, I am Prajwal Desai. For last few years I have been working on multiple technologies such as SCCM / Configuration Manager, Intune, Azure, Security etc. I created this site so that I can share valuable information with everyone.

Related Articles


  1. Another way:
    Install the System Center Configuration Manager Console (Desktop or Thecnician PC).
    File – Connect via Windows PowerShell/Windows PowerShell ISE
    Run the Script ISEConnect
    Run From there

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button