Quantcast
Channel: The SharePoint Farm
Viewing all articles
Browse latest Browse all 184

Using PowerShell to Manage SharePoint Information Rights Management Settings

0
0
Information Rights Management (IRM) allows users to restrict how documents are handled.  With SharePoint, IRM settings are applied at the List/Library level.  When a document is added to an IRM-enabled Library, the IRM is stripped from the document.  When that document is downloaded from the Library, the document has the IRM settings from the Library applied to it.  This allows SharePoint to crawl the content. You can use PowerShell to manage IRM settings for each Library, and it is straightforward.  Properties that use the InformationRightsManagementSettings are available in SharePoint 2013 only. First, bind to the Web and the List: [crayon-5200c71bd340d918904985/] When making a change to a list property, make sure to call the Update() method, for example: [crayon-5200c71bd341b792590930/] Here are the various settings you can apply.  I’ll be translating from the SharePoint UI to the PowerShell property. Restrict permissions on this library on download [crayon-5200c71bd3425044555800/] Create a permission policy title [crayon-5200c71bd342e714145216/] Add a permission policy description: [crayon-5200c71bd3436016603334/] Do not allow users to upload documents that do not support IRM [crayon-5200c71bd343f046458395/] Stop restricting access to the library at [crayon-5200c71bd3447929649754/] Prevent opening documents in the browser for this Document Library [crayon-5200c71bd344f434938607/] Allow viewers to print  [crayon-5200c71bd3458220313937/] Allow viewers to run script and screen reader to function on downloaded documents [crayon-5200c71bd3460367082309/] Allow viewers to write on a copy of the downloaded document [crayon-5200c71bd3468305419199/] After download, document access rights will expire after these number of days (1-365) [crayon-5200c71bd3471864861232/] Users must verify their credentials using this interval (days) [crayon-5200c71bd3479674684603/] Allow group protection. Default group: [crayon-5200c71bd3482260173351/] As noted, those properties in InformationRightsManagementSettings are not available in SharePoint 2010.  However, you can manipulate the properties directly.  Again, get the list object into a variable.   Permission policy title: [crayon-5200c71bd348b016437298/] Permission policy description: [crayon-5200c71bd3494510671931/] Allow users to print documents [crayon-5200c71bd349c441939681/] Allow users to access content programmatically [crayon-5200c71bd34a4178405673/] Users must verify their credentials every: [crayon-5200c71bd34ad806741289/] Stop restricting permission to documents in this library on: [crayon-5200c71bd34b5314939950/]

Viewing all articles
Browse latest Browse all 184

Latest Images

Trending Articles





Latest Images