The Official RMS Team Blog

Your official source for all the latest news and tech tips for Microsoft AD RMS and Azure RMS.

Microsoft.Protection PowerShell cmdlets - CTP2

Microsoft.Protection PowerShell cmdlets - CTP2

  • Comments 11
  • Likes

Hello Folks,

Yair Cohen on our team is going to explain to you the new Preview release for Microsoft.Protection PowerShell cmdlets.

Hello everyone, i m Yair, a program manager on the RMS  team.  

Microsoft.Protection PowerShell cmdlets are designed for developers, IT pros and products who like to script with AD RMS SDK without directly integrating with AD RMS SDK 2.1 package. Microsoft.Protection cmdlets provide all the rich functionalities provided by AD RMS SDK 2.1. Based on your feedback on bugs and features, we are happy to annouce the second preview release (CTP2) of our PowerShell cmdlets.

Notably. the newly released CTP2 supports silent authentication with RMS service. This is crucial for server/service workloads where there is no interactive involvement from user. We also fix numerous bugs as part of this preview release.

In this CTP2 release package, we provide:

  • Microsoft.Protection cmdlet binaries
  • Install and Uninstall ps1
  • Readme.docx for the install instructions and details on the new cmdlets.
  • Extensive cmdlet help by running Get-Help on each cmdlet.

Microsoft.Protection cmdlets continue work in progress. We will update frequently based on your feedback for feature requests and bugs. However, we will support the PowerShell cmdlets deployment in production environments.

 To give our cmdlets a try, go to and download the package.

 NOTE: If you receive an error, you haven’t registered on Microsoft Connect. To register: go to, sign in with your Microsoft Account > Directory> Search for Rights Management Services > Join.

Enjoy them and let us know about your experience.


Yair Cohen

  • I am getting this error when running get-RMSServer:
    Get-RMSServer : The operation being requested was not performed because the user has not been authenticated. HRESULT:
    At line:1 char:1
    + Get-RMSServer
    + ~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Get-RMSServer], InformationProtectionException
    + FullyQualifiedErrorId : Microsoft.InformationProtectionAndControl.InformationProtectionException,Microsoft.Prote

  • Microsoft.Protection PowerShell cmdlets - CTP2
    thank you

  • Please try fixing this by adding Read& Execute permission for the users on Servercertification.asmx.


  • @ Gagan
    That worked. Thanks

  • Now that I have the first error out of the way and was able to successfully encrypt DOCX file then next error came up when trying to encrypt a PDF.

    Protect-RMSFILE : This file can't be protected because your administrator has blocked encryption of this file format.
    Contact your administrator for further details. HRESULT: 0x80041002
    At line:1 char:1
    + Protect-RMSFILE -File "C:\FLH_Confidential\Test1.pdf" -TemplateID {3d7ffa52-142e ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Protect-RMSFile], InformationProtectionException
    + FullyQualifiedErrorId : Microsoft.InformationProtectionAndControl.InformationProtectionException,Microsoft.Prote

  • Can you use the AD RMS Powershell Cmdlet CTP2 to encrypt PDFs?

  • Yo_bee: Are you able to confirm that this has the ability to encrypt PDF documents?

  • Does this support pst file extensions?

  • Hi Todd, we don't support PST files yet, but we have it on the roadmap. Unfortunately no timeline yet, as we are still researching how to engineer this.

  • Good Afternoon. I am trying to install Microsoft.Protection PowerShell cmdlets - CTP2 on Server 2012 R2 and I am getting an error when trying to install it.

    Exception occurred while initializing the installation:
    System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Windows\System32\WindowsPowerShell\v1.0\Modules\Microsoft.Protection\Microsoft.Protection.dll' or one of its dependencies. Operation is not supported. (Exception fromHRESULT: 0x80131515).

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment