Quantcast
Channel: SCSM PowerShell Cmdlets
Viewing all articles
Browse latest Browse all 306

New Post: Trying to remove "Pending deletion" items cause a lot of (yellow) warnings

$
0
0

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?


Viewing all articles
Browse latest Browse all 306

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>