Skip to content

Commit 49f4193

Browse files
Merge pull request #92384 from MicrosoftDocs/JamesTran-MSFT-patch-28
Updated PowerShell Script
2 parents f78f594 + 3a3ced2 commit 49f4193

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/active-directory/manage-apps/migrate-okta-sync-provisioning-to-azure-active-directory.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ The example will grab *all* on-premises Azure AD users and export a list of thei
7979
1. Run these commands in PowerShell on a domain controller on-premises:
8080

8181
```PowerShell
82-
Get-ADUser -Filter * -Properties objectGUID | Select-Object
82+
Get-ADUser -Filter * -Properties objectGUID | Select -Object
8383
UserPrincipalName, Name, objectGUID, @{Name = 'ImmutableID';
8484
Expression = {
85-
[system.convert\]::ToBase64String(([GUID\]\$_.objectGUID).ToByteArray())
86-
} } | export-csv C:\\Temp\\OnPremIDs.csv
85+
[system.convert]::ToBase64String((GUID).tobytearray())
86+
} } | export-csv C:\Temp\OnPremIDs.csv
8787
```
8888

8989
![Screenshot that shows domain controller on-premises commands.](./media/migrate-okta-sync-provisioning-to-azure-active-directory-connect-based-synchronization/domain-controller.png)

0 commit comments

Comments
 (0)