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:
The GUI won’t allow you to delete multiple Operation Status at the same time:
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}}
An easy one-liner, don’t you think?
Hope this helps 🙂
Martin
Leave a Reply