SCCM 2012 R2 – Delete Client Operations Status

I often hear from customers, that they need a solution to delete expired Client Operations, the console Looks like this, but with more than hundreds of Operations:
Client Operation Overview

The GUI won’t allow you to delete multiple Operation Status at the same time:
Client Operation Delete GUI
Would you like to delete all of this entries manually? Even if I could charge the hours as a Consultant, no way…
Just take a look to this powershell line, which deletes all expired operations:
Foreach($cmcops in Get-CMClientOperations){If ($cmcops.IsExpired -eq 1) {Remove-CMClientOperation -Id $cmcops.ID -Force}}
Delete ClientOperations PoSh
An easy one-liner, don’t you think?

Hope this helps 🙂

3 thoughts on “SCCM 2012 R2 – Delete Client Operations Status

  1. Anything I need to install first… I get an error when running it

    Get-CMClientOperations : The term ‘Get-CMClientOperations’ is not recognized as the name of a cmdlet, function, script
    file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct a
    nd try again.
    At line:1 char:20

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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