VivekRR
VivekRR

Reputation: 15

SCCM Identify retired applications

One of our customer got hundreds of applications which we believe needs to be retired, so we would like to have an automated solution created which will allow us to confirm they can be retired. The script\query\tool will need to check deployments, dependencies, task sequences, devices that still require this version etc. Has anyone run into the same requirement, please help ?

Upvotes: 0

Views: 2145

Answers (1)

SolidSid
SolidSid

Reputation: 319

This can be achieved by using the Config Manager PowerShell Module. The 'IsExpired' property of the CMApplication object indicates whether the application has been retired.

Get-CMApplication -Name $AppName | Select-Object -ExpandProperty IsExpired

Once you understand the object and property, you could run a query where only applications are selected where the 'IsExpired' status is $true.

Get-CMApplication | Where-Object {$_.IsExpired -eq "$True"}

I'd recommend running this on a subset of applications first if you have a large repository.

Upvotes: 0

Related Questions