Set-RmsSvcAccount is accessible with the help of ADRMSAdmin module. To install ADRMSAdmin on your system please refer to this ADRMSAdmin.
Synopsis
Sets the service account for an Active Directory Rights Management Services (AD RMS) cluster.
Description
The Set-RmsSvcAccount cmdlet sets the service account of an Active Directory Rights Management Services (AD RMS) cluster.
To specify the service account, set the Credential parameter to the service account credentials, and then set the Path parameter to “:\” where is the AD RMS provider drive ID.
Parameters
-Credential
Specifies a user name and password as a PSCredential object.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force <SwitchParameter>
Overrides restrictions that prevent the command from succeeding, just so the changes do not compromise security.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-PassThru <SwitchParameter>
Passes the object created by this cmdlet through the pipeline. By default, this cmdlet does not pass any objects through the pipeline.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Path <String[]>
Specifies a provider drive and path or relative path on the current drive. This parameter is required. Use a dot (.) to specify the current location. This parameter does not accept wildcards and has no default value.
Required? true
Position? 1
Default value String.empty
Accept pipeline input? false
Accept wildcard characters? false
-Confirm <SwitchParameter>
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf <SwitchParameter>
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
Syntax
Set-RmsSvcAccount [-Credential] <PSCredential> [-Force] [-PassThru] [-Path] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
————– EXAMPLE 1 ————–
C:\PS>Set- RmsSvcAccount -Path .
This command changes the AD RMS service account. Because the Credential parameter is not used, the Set-RmsSvcAccount cmdlet prompts for the user name and password of the new service account.
————– EXAMPLE 2 ————–
C:\PS>Set- RmsSvcAccount -Path . -Force -PassThru -Credential TOSSolution\adrmssvc
This command changes the AD RMS service account. Because the Credential specifies the domain and user name of the account, the Set-RmsSvcAccount cmdlet prompts for the password of the new service account.
————– EXAMPLE 3 ————–
C:\PS>$userAccount = Get-Credential TOSSolution\adrmssvc
Set- RmsSvcAccount -Path . -Force -PassThru -Credential $userAccount
This command uses the Get-Credential cmdlet to prompt for the password for the TOSSolution\adrmsvc account and then stores the account credentials securely in a variable, which is then passed to the Set-RmsSvcAccount cmdlet.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Set-RmsSvcAccount
You can also read about
- Get-RmsSvcAccount