Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am having trouble deploying a Custom Retention Policy, and have ended up with a hanging policy resource that is keeping me from activating the retention policy. I was wondering if there was a way to remove this in powershell. The way this is done in C# is:

using Microsoft.Office.RecordsManagement.InformationPolicy;
...
PolicyResourceCollection.Delete("PolicyResourceID");

Is there a way to do this in powershell?

share|improve this question

1 Answer 1

up vote 1 down vote accepted
Add-PSSnapin Microsoft.SharePoint.PowerShell

[Microsoft.Office.RecordsManagement.InformationPolicy.PolicyResourceCollection]::Delete("PolicyResourceID");
share|improve this answer
    
Thank you, sir. Worked like a charm. Wish powershell had more succinct access to other assemblies, though. –  xdhmoore Dec 15 '11 at 20:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.