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.

Related Posts :-

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

Leave a Reply

1 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
newest oldest most voted
Praveen Pareen
Praveen Pareen


Can you create a script to get all active deployment in sccm 2012 CB

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More