Skip to content

Commit 0729901

Browse files
committed
[AzureADDS] Refactoring on scoped synchronization doc
1 parent f2a3acd commit 0729901

File tree

2 files changed

+119
-74
lines changed

2 files changed

+119
-74
lines changed

articles/active-directory-domain-services/powershell-create-instance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ New-AzureADGroup -DisplayName "AAD DC Administrators" `
6060

6161
With the *AAD DC Administrators* group created, add a user to the group using the [Add-AzureADGroupMember][Add-AzureADGroupMember] cmdlet. You first get the *AAD DC Administrators* group object ID using the [Get-AzureADGroup][Get-AzureADGroup] cmdlet, then the desired user's object ID using the [Get-AzureADUser][Get-AzureADUser] cmdlet.
6262

63-
In the following example, the user object ID for the account with a UPN of *[email protected]*. Replace this user account with the UPN of the user you wish to add to the *AAD DC Administrators* group:
63+
In the following example, the user object ID for the account with a UPN of `[email protected]`. Replace this user account with the UPN of the user you wish to add to the *AAD DC Administrators* group:
6464

6565
```powershell
6666
# First, retrieve the object ID of the newly created 'AAD DC Administrators' group.
@@ -70,7 +70,7 @@ $GroupObjectId = Get-AzureADGroup `
7070
7171
# Now, retrieve the object ID of the user you'd like to add to the group.
7272
$UserObjectId = Get-AzureADUser `
73-
-Filter "UserPrincipalName eq 'contosoadmin@ifouldslive.onmicrosoft.com'" | `
73+
-Filter "UserPrincipalName eq 'admin@contoso.onmicrosoft.com'" | `
7474
Select-Object ObjectId
7575
7676
# Add the user to the 'AAD DC Administrators' group.

0 commit comments

Comments
 (0)