Skip to content

Commit 34e8670

Browse files
authored
Merge pull request #110933 from matsimon/update-cmdlets-for-graph
Hybrid: Introduce Get-Mg* equivalents for Get-Msol* Cmdlets
2 parents 13fe5cb + 500956f commit 34e8670

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

articles/active-directory/hybrid/connect/how-to-connect-syncservice-features.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,40 @@ This topic explains how the following features of the **Azure AD Connect sync se
2828

2929
These settings are configured by the [Azure Active Directory Module for Windows PowerShell](/previous-versions/azure/jj151815(v=azure.100)). Download and install it separately from Azure AD Connect. The cmdlets documented in this topic were introduced in the [2016 March release (build 9031.1)](https://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx#Version_9031_1). If you do not have the cmdlets documented in this topic or they do not produce the same result, then make sure you run the latest version.
3030

31-
To see the configuration in your Azure AD directory, run `Get-MsolDirSyncFeatures`.
31+
To see the configuration in your Azure AD directory, run `Get-MsolDirSyncFeatures`.
3232
![Get-MsolDirSyncFeatures result](./media/how-to-connect-syncservice-features/getmsoldirsyncfeatures.png)
3333

34+
To see the configuration in your Azure AD directory using the Graph Powershell, use the following commands:
35+
```powershell
36+
Connect-MgGraph -Scopes OnPremDirectorySynchronization.Read.All, OnPremDirectorySynchronization.ReadWrite.All
37+
38+
Get-MgDirectoryOnPremisSynchronization | Select-Object -ExpandProperty Features | Format-List
39+
```
40+
41+
The output looks similar to `Get-MsolDireSyncFeatures`:
42+
```powershell
43+
BlockCloudObjectTakeoverThroughHardMatchEnabled : False
44+
BlockSoftMatchEnabled : False
45+
BypassDirSyncOverridesEnabled : False
46+
CloudPasswordPolicyForPasswordSyncedUsersEnabled : False
47+
ConcurrentCredentialUpdateEnabled : False
48+
ConcurrentOrgIdProvisioningEnabled : False
49+
DeviceWritebackEnabled : False
50+
DirectoryExtensionsEnabled : True
51+
FopeConflictResolutionEnabled : False
52+
GroupWriteBackEnabled : False
53+
PasswordSyncEnabled : True
54+
PasswordWritebackEnabled : False
55+
QuarantineUponProxyAddressesConflictEnabled : False
56+
QuarantineUponUpnConflictEnabled : False
57+
SoftMatchOnUpnEnabled : True
58+
SynchronizeUpnForManagedUsersEnabled : False
59+
UnifiedGroupWritebackEnabled : True
60+
UserForcePasswordChangeOnLogonEnabled : False
61+
UserWritebackEnabled : True
62+
AdditionalProperties : {}
63+
```
64+
3465
Many of these settings can only be changed by Azure AD Connect.
3566

3667
The following settings can be configured by `Set-MsolDirSyncFeature`:
@@ -72,7 +103,12 @@ If you need to match on-premises AD accounts with existing accounts created in t
72103
This feature is on by default for newly created Azure AD directories. You can see if this feature is enabled for you by running:
73104

74105
```powershell
106+
## Using the MSOnline module
75107
Get-MsolDirSyncFeatures -Feature EnableSoftMatchOnUpn
108+
109+
## Using the Graph Powershell module
110+
$Config = Get-MgDirectoryOnPremisSynchronization
111+
$Config.Features.SoftMatchOnUpnEnabled
76112
```
77113

78114
If this feature is not enabled for your Azure AD directory, then you can enable it by running:
@@ -106,7 +142,12 @@ Enabling this feature allows the sync engine to update the userPrincipalName whe
106142
This feature is on by default for newly created Azure AD directories. You can see if this feature is enabled for you by running:
107143

108144
```powershell
145+
## Using the MSOnline module
109146
Get-MsolDirSyncFeatures -Feature SynchronizeUpnForManagedUsers
147+
148+
## Using the Graph Powershell module
149+
$config = Get-MgDirectoryOnPremisSynchronization
150+
$config.Features.SynchronizeUpnForManagedUsersEnabled
110151
```
111152

112153
If this feature is not enabled for your Azure AD directory, then you can enable it by running:

0 commit comments

Comments
 (0)