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 :-
- Enable .NET Framework 3.5 in Windows 10 using SCCM
- Get Configuration Manager Client Cache Size using PowerShell
- Install Azure PowerShell Module in Windows 10
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.
#PowerShell script to list all the application deployments
Import-Module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'
$FilePath = "C:\powershellscripts\test.csv" Get-CMApplication | Select-Object LocalizedDisplayName,SoftwareVersion,NumberOfDeployments | Export-CSV $FilePath