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 7
  • 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 https://connect.microsoft.com/site1170/Downloads/DownloadDetails.aspx?DownloadID=49294 and download the package.

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

Enjoy them and let us know about your experience.

Thanks,

Yair Cohen

Comments
  • 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:
    0x800704DC
    At line:1 char:1
    + Get-RMSServer
    + ~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Get-RMSServer], InformationProtectionException
    + FullyQualifiedErrorId : Microsoft.InformationProtectionAndControl.InformationProtectionException,Microsoft.Prote
    ction.PowerShell.GetRMSServer

  • Microsoft.Protection PowerShell cmdlets - CTP2
    thank you

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

    Thanks,
    Gagan

  • @ 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
    ction.PowerShell.ProtectRMSFile

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

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