Creating ADRMS service discovery keys in PowerShell

I’m trying to do more and more with PowerShell lately. I’ve found it’s a really quick way to make changes on Windows Server. Experimenting with Information Rights Management in SharePoint 2013, I needed to create 3 registry keys and set the value of 2.

Here’s a script example for setting the Windows Registry keys for client-side ADRMS service discovery:

New-Item -Path ‘HKLM:SOFTWAREMicrosoftMSIPCServiceLocation’
New-Item -Path ‘HKLM:SOFTWAREMicrosoftMSIPCServiceLocationEnterprisePublishing’`
-value ‘’
New-Item -Path ‘HKLM:SOFTWAREMicrosoftMSIPCServiceLocationEnterpriseCertification’`
-value ‘’

If you need to delete a key it’s just as easy:

Remove-Item -Path ‘HKLM:SOFTWAREMicrosoftMSIPCServiceLocationEnterpriseCertification’


Note AD RMS is the Active Directory Rights Management Service

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.