Q: I'm trying to configure Rights Management Services (RMS) using Windows PowerShell, but its unclear how I create the PSDrive for the RMS administration that the cmdlets need. What do I do?
A: The RMS cmdlets primarily use a drive that exposes the RMS configuration. However, it might not be obvious how to actually create the drive that's then usable.
The drive is created by using the New-PSDrive cmdlet, and you specify AdRmsAdmin as the provider, then the URL of the RMS administration site, for example:
- New-PSDrive -PSProvider AdRmsAdmin -Name z -Root https://rms.savilltech.net:443/_wmcs/admin
This can then be used in the RMS commands, for example:
- Import-RmsTUD -Path z:\TrustPolicy\TrustedUserDomain -WindowsLiveId