Skip to content

Commit 01dd262

Browse files
authored
Point out when to use UserPrincipalName
Pointed out that MicrosoftOnlineServicesID must be used instead of UserPrincipalName if the CmdLet is ran from Exchange Online
1 parent 118474f commit 01dd262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exchange/exchange-ps/exchange/New-Mailbox.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ Accept wildcard characters: False
10681068
### -MicrosoftOnlineServicesID
10691069
This parameter is available only in the cloud-based service.
10701070

1071-
The MicrosoftOnlineServicesID parameter specifies the user ID for the object. This parameter only applies to objects in the cloud-based service. It isn't available for on-premises deployments.
1071+
The MicrosoftOnlineServicesID parameter specifies the user ID for the object. This parameter only applies to objects in the cloud-based service and it's used as a replacement of UserPrincipalName in the cloud. It isn't available for on-premises deployments.
10721072

10731073
```yaml
10741074
Type: WindowsLiveId
@@ -1222,7 +1222,7 @@ Accept wildcard characters: False
12221222
### -UserPrincipalName
12231223
This parameter is available only in on-premises Exchange.
12241224

1225-
The UserPrincipalName parameter specifies the logon name for the user account. The UPN uses an email address format: `username@domain`. Typically, the domain value is the domain where the user account resides.
1225+
The UserPrincipalName parameter specifies the logon name for the user account. The UPN uses an email address format: `username@domain`. Typically, the domain value is the domain where the user account resides. Please use the MicrosoftOnlineServicesID swtich if you're running the CmdLet from the cloud instead.
12261226

12271227
```yaml
12281228
Type: String

0 commit comments

Comments
 (0)