Greetings,
I currently have around 347 items stored in the "deleted items" view, in the administration pane. When using the below PowerShell script, which in turn uses SMLets commands, nothing happens:
import-module smlets $class = Get-SCSMClass | where{$_.name -match “system.configitem”} $deletedobjects = Get-SCSMObject -class $class | where{$_.objectstatus -match “Pending”} $deletedobjects | set-scsmobject -property objectstatus -value deleted
$DeletedObjects however never gets filled. There are a lot of yellow warnings on the screen about a "DisplayName" already being present. After that, nothing.
I'm also unsure if the command triggers the grooming part of SCSM, which is also explained on:
- http://blogs.technet.com/b/servicemanager/archive/2009/09/18/data-retention-policies-aka-grooming-in-the-servicemanager-database.aspx
Anyone got any idea?