Thursday, June 26, 2014

Finding the Azure AD Sync PowerShell Module

A key goal of Sync vNext is to eliminate the need for guys like me (integrators, consultants, etc).  Hiding the sync engine behind a super-intuitive user interface is one way to accomplish that.  Another way is to add super-awesome PowerShell coverage. 

WTF the AAD Sync Module

Where To Find the module?  The AAD Sync module can be found using the usual commands in PowerShell for discovery (PowerShell is awesome at discovery BTW).

1. Get-Module

this command shows the loaded modules, so just shows that the AAD Sync Module isn’t loaded.

2. Get-Module –ListAvailable

this command shows the modules available to be loaded, and shows the interesting one in this case.  The name doesn’t give it away, and I expect that to change to something more meaningful by the time the product ship.  The path provides a good clue that the module belongs to AAD Sync.

Directory: C:\Program Files\Microsoft Azure AD Sync\Bin

 

 

ModuleType Version  Name           

---------- -------  ----            

Binary     1.0.0.0  PowerShellConfig

 

 

 

3. Import-Module PowerShellConfig –Verb

this command just loads the module

VERBOSE: Loading module from path 'C:\Program Files\Microsoft Azure AD Sync\Bin\powershellconfig\powershellconfig.psd1'.

VERBOSE: Importing cmdlet 'Add-AttributeFlowMapping'.

VERBOSE: Importing cmdlet 'Add-ConfigurationParameter'.

VERBOSE: Importing cmdlet 'Add-ConnectorAnchorConstructionSettings'.

VERBOSE: Importing cmdlet 'Add-ConnectorAttributeInclusion'.

VERBOSE: Importing cmdlet 'Add-ConnectorHierarchyProvisioningMapping'.

VERBOSE: Importing cmdlet 'Add-ConnectorObjectInclusion'.

VERBOSE: Importing cmdlet 'Add-JoinConditionGroup'.

VERBOSE: Importing cmdlet 'Add-RunStep'.

VERBOSE: Importing cmdlet 'Add-ScopeConditionGroup'.

VERBOSE: Importing cmdlet 'Disable-ConnectorPartition'.

VERBOSE: Importing cmdlet 'Disable-ConnectorPartitionHierarchy'.

VERBOSE: Importing cmdlet 'Enable-ConnectorPartition'.

VERBOSE: Importing cmdlet 'Enable-ConnectorPartitionHierarchy'.

VERBOSE: Importing cmdlet 'Export-ServerConfiguration'.

VERBOSE: Importing cmdlet 'Get-ConfigurationParameter'.

VERBOSE: Importing cmdlet 'Get-Connector'.

VERBOSE: Importing cmdlet 'Get-ConnectorHierarchyProvisioningDNComponent'.

VERBOSE: Importing cmdlet 'Get-ConnectorHierarchyProvisioningMapping'.

VERBOSE: Importing cmdlet 'Get-ConnectorHierarchyProvisioningObjectClass'.

VERBOSE: Importing cmdlet 'Get-ConnectorPartition'.

VERBOSE: Importing cmdlet 'Get-ConnectorPartitionHierarchy'.

VERBOSE: Importing cmdlet 'Get-ConnectorTypes'.

VERBOSE: Importing cmdlet 'Get-GlobalSettings'.

VERBOSE: Importing cmdlet 'Get-PasswordHashSyncConfiguration'.

VERBOSE: Importing cmdlet 'Get-RunProfile'.

VERBOSE: Importing cmdlet 'Get-Schema'.

VERBOSE: Importing cmdlet 'Get-SynchronizationRule'.

VERBOSE: Importing cmdlet 'Import-ServerConfiguration'.

VERBOSE: Importing cmdlet 'Initialize-Connector'.

VERBOSE: Importing cmdlet 'Initialize-RunProfile'.

VERBOSE: Importing cmdlet 'Initialize-ScopeCondition'.

VERBOSE: Importing cmdlet 'Initialize-SynchronizationRule'.

VERBOSE: Importing cmdlet 'New-Connector'.

VERBOSE: Importing cmdlet 'New-RunProfile'.

VERBOSE: Importing cmdlet 'New-SynchronizationRule'.

VERBOSE: Importing cmdlet 'Remove-AttributeFlowMapping'.

VERBOSE: Importing cmdlet 'Remove-ConfigurationParameter'.

VERBOSE: Importing cmdlet 'Remove-Connector'.

VERBOSE: Importing cmdlet 'Remove-ConnectorAnchorConstructionSettings'.

VERBOSE: Importing cmdlet 'Remove-ConnectorAttributeInclusion'.

VERBOSE: Importing cmdlet 'Remove-ConnectorHierarchyProvisioningMapping'.

VERBOSE: Importing cmdlet 'Remove-ConnectorObjectInclusion'.

VERBOSE: Importing cmdlet 'Remove-JoinConditionGroup'.

VERBOSE: Importing cmdlet 'Remove-PasswordHashSyncConfiguration'.

VERBOSE: Importing cmdlet 'Remove-RunProfile'.

VERBOSE: Importing cmdlet 'Remove-RunStep'.

VERBOSE: Importing cmdlet 'Remove-ScopeConditionGroup'.

VERBOSE: Importing cmdlet 'Remove-SynchronizationRule'.

VERBOSE: Importing cmdlet 'Set-ConfigurationParameter'.

VERBOSE: Importing cmdlet 'Set-Connector'.

VERBOSE: Importing cmdlet 'Set-GlobalSettings'.

VERBOSE: Importing cmdlet 'Set-MIISADMAConfiguration'.

VERBOSE: Importing cmdlet 'Set-PasswordHashSyncConfiguration'.

VERBOSE: Importing cmdlet 'Set-RunProfile'.

VERBOSE: Importing cmdlet 'Set-Schema'.

VERBOSE: Importing cmdlet 'Set-SynchronizationRule'.

VERBOSE: Importing cmdlet 'Update-ConnectorPartition'.

VERBOSE: Importing cmdlet 'Update-ConnectorSchema'.

 

No comments: