Rename-SBAuthorizationDomain
Rename-SBAuthorizationDomain
Changes the domain for users in both the service namespace authorization and the messaging entity authorization rules.
Syntax
Parameter Set: Default
Rename-SBAuthorizationDomain -Name <String> -NewName <String> [ <CommonParameters>]
Detailed Description
This cmdlet renames the domain for users in the ManageUsers list from Name to NewName, in the service namespace authorization rules and messaging entity authorization rules.
Parameters
-Name<String>
Original name of the domain.
Aliases |
n |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
-NewName<String>
New name for the domain.
Aliases |
e |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example
The following example changes the domain for users in the ManageUsers group in the service namespace and any authorization rules in the messaging entities. This command changes user names in the group from <userName>@domain.com to <userName>@cityname.contoso.com.
PS C:\> Rename-SBAuthorizationDomain –Name “domain1.com” –NewName “cityname.contoso.com”