Connecting to the Rights Management service
Published: July 16, 2012
Updated: July 16, 2012
Applies To: Office 365
This topic explains how to use the Windows Azure AD Rights Management module for Windows PowerShell to connect to the Rights Management service.
The following demonstrates how to connect to the Rights Management service:
By specifying the Connect-AadrmService cmdlet without parameters you will be prompted for the user account credentials to be used to perform this task.
To specify credentials, type a valid Office 365 administrator user name, such as "User@aadrmeval.onmicrosoft.com" or you can specify a PSCredential object. If you specify a user name for this parameter, the cmdlet prompts for a password.
You can also create a PSCredential object by using a script or by using the Get-Credential cmdlet. You can then set the Credential parameter to the PSCredential object.
The following example shows how to create credentials.
$AdminCredentials = Get-Credential "User@aadrmeval.onmicrosoft.com"
The following shows how to set the Credential parameter to these credentials.
Connect-AadrmService -Credential $AdminCredentials
If the acting credentials do not have the required administrative level of permissions to perform this task, Rights Management returns a terminating error.