Bin/ADSyncDiagnostics/ADSyncDiagnostics.psm1

Import-Module ADSync

Get-ChildItem -Path "$PSScriptRoot\PSScripts\*.ps1" | % { . $_.FullName }

Set-Variable ADSyncDiagnosticsOutputPath "$env:ALLUSERSPROFILE\AADConnect" -option Constant

$global:AADTenantCredential = $null
$global:AscCustomScriptObjectProperty = 'IsAscCustomScriptObject'

#
# AADConnect General Diagnostics
#
# Invoke-ADSyncDiagnostics
#
#
# Complete Password Hash Sync Diagnostics
#
# Invoke-ADSyncDiagnostics -PasswordSync
#
#
# Password Hash Sync Single Object Diagnostics
#
# Invoke-ADSyncDiagnostics -PasswordSync -ADConnectorName <AD Connector Name> -DistinguishedName <Distinguished Name>
#
function Invoke-ADSyncDiagnostics
{
    param
    (
        [switch]
        [parameter(parametersetname="passwordsync", mandatory=$false)]
        $PasswordSync,

        [string]
        [parameter(parametersetname="passwordsync", mandatory=$false)]
        $ADConnectorName,

        [string]
        [parameter(parametersetname="passwordsync", mandatory=$false)]
        $DistinguishedName,

        [string]
        [parameter(parametersetname="passwordsync", mandatory=$false)]
        $MemberADConnectorName,

        [string]
        [parameter(parametersetname="passwordsync", mandatory=$false)]
        $MemberDistinguishedName,

        [switch]
        [parameter(parametersetname="passwordsync", mandatory=$false)]
        $NonInteractiveMode
    )

    # Currently Non-interactive mode is used to run script from ASC.
    $isNonInteractiveMode = $NonInteractiveMode.IsPresent

    if ($PasswordSync -and ([string]::IsNullOrEmpty($ADConnectorName) -or [string]::IsNullOrEmpty($DistinguishedName)))
    {
        if ($isNonInteractiveMode)
        {
            if ([string]::IsNullOrEmpty($ADConnectorName))
            {
                "ADConnectorName is a mandatory parameter in Non-Interactive Mode. Either provide AdConnectorName or rerun the script without Non-Interactive mode." | Write-Host -fore Red
                return
            }

            $result = DiagnosePasswordHashSyncNonInteractiveMode -ADConnectorName $ADConnectorName

            if ($result)
            {
                # In Non-Interactive mode just output the objects which are logged for ASC purpose.
                $result | Where-Object {(Get-Member -InputObject $_ -Name  $AscCustomScriptObjectProperty) -ne $null}    
            }
        }
        else
        {
            # Complete Password Hash Sync Diagnostics
            DiagnosePasswordHashSync
            PromptPasswordSyncSingleObjectDiagnostics
        }
    }
    elseif ($PasswordSync)
    {
        if ($isNonInteractiveMode)
        {
            $result = DiagnosePasswordHashSyncNonInteractiveMode -ADConnectorName $ADConnectorName
            $result += DiagnosePasswordSyncSingleObject -ADConnectorName $ADConnectorName -DistinguishedName $DistinguishedName

            if ($result)
            {
                # In Non-Interactive mode just output the objects which are logged for ASC purpose.
                $result | Where-Object {(Get-Member -InputObject $_ -Name  $AscCustomScriptObjectProperty) -ne $null}    
            }
        }
        else
        {
            # Password Hash Sync Single Object Diagnostics
            DiagnosePasswordSyncSingleObject -ADConnectorName $ADConnectorName -DistinguishedName $DistinguishedName
        }
    }
    else
    {
        if ($isNonInteractiveMode)
        {
            if ([string]::IsNullOrEmpty($ADConnectorName) -or [string]::IsNullOrEmpty($DistinguishedName))
            {
                "ADConnectorName and DistinguishedName are mandatory parameters in Non-Interactive Mode. Either provide all the mandatory parameters or rerun the script without Non-Interactive mode." | Write-Host -fore Red
                return
            }
            elseif ([string]::IsNullOrEmpty($MemberADConnectorName) -or [string]::IsNullOrEmpty($MemberDistinguishedName))
            {
                $result = Debug-ADSyncObjectSynchronizationIssuesNonInteractiveMode -ADConnectorName $ADConnectorName -ObjectDN $DistinguishedName -DiagnosticOption $global:DiagnoseObjectSyncIssues

                if ($result)
                {
                    # In Non-Interactive mode just output the objects which are logged for ASC purpose.
                    $result | Where-Object {(Get-Member -InputObject $_ -Name  $AscCustomScriptObjectProperty) -ne $null}    
                }
            }
            else
            {
                $result = Debug-ADSyncGroupMembershipSynchronizationIssuesNonInteractiveMode -GroupADConnectorName $ADConnectorName -GroupDN $DistinguishedName -MemberADConnectorName $MemberADConnectorName -MemberDN $MemberDistinguishedName

                if ($result)
                {
                    # In Non-Interactive mode just output the objects which are logged for ASC purpose.
                    $result | Where-Object {(Get-Member -InputObject $_ -Name  $AscCustomScriptObjectProperty) -ne $null}    
                }
            }
        }
        else
        {
            MainMenu
        }

        return
    }

    Write-Host "`r`n"
    "For more help:" | Write-Host -fore Yellow
    "+ Please see - https://go.microsoft.com/fwlink/?linkid=847231 or" | Write-Host -fore Yellow
    "+ Open a service request through Azure Portal or Office 365 Admin Portal." | Write-Host -fore Yellow
    Write-Host "`r`n"
}

#
# Main Troubleshooting Menu
#
function MainMenu
{
    cls
    $isQuit = $false

    while ($true)
    {
        Show-MainMenu

        $selection = Read-Host "`tPlease make a selection"

        Write-Host "`r`n"

        if ($selection -eq '1')
        {
            $isQuit = ObjectSyncMenu

            if ($isQuit -eq $true)
            {
                break
            }
            else
            {
                continue
            }
        }
        elseif ($selection -eq '2')
        {
            $isQuit = PasswordSyncMenu

            if ($isQuit -eq $true)
            {
                break
            }
            else
            {
                continue
            }
        }
        elseif ($selection -eq '3')
        {
            Export-ADSyncDiagnosticsReport -OutputPath $ADSyncDiagnosticsOutputPath
        }
        elseif ($selection -eq '4')
        {
            if ($isNonInteractiveMode)
            {
                continue
            }

            if (-not (CheckConfigureAccountPermissionsPrerequisites))
            {
                continue
            }

            $isQuit = ConfigurePermissionsMenu

            if ($isQuit -eq $true)
            {
                break
            }
            else
            {
                continue
            }
        }
        elseif ($selection -eq '5')
        {
            if ($isNonInteractiveMode)
            {
                continue
            }

            Test-ADSyncAzureActiveDirectoryConnectivity
        }
        elseif ($selection -eq '6')
        {
            if ($isNonInteractiveMode)
            {
                continue
            }

            Test-ADSyncActiveDirectoryConnectivity
        }
        elseif ($selection -eq 'Q' -or $selection -eq 'q')
        {
            break
        }

        Write-Host "`r`n"
        Write-Host "`r`n"
    }
}

function Show-MainMenu
{
    Write-Host "`r`n"
    Write-Host "----------------------------------------AADConnect Troubleshooting------------------------------------------"
    Write-Host "`r`n"
    Write-Host "`tEnter '1' - Troubleshoot Object Synchronization"
    Write-Host "`tEnter '2' - Troubleshoot Password Hash Synchronization"
    Write-Host "`tEnter '3' - Collect General Diagnostics"
    Write-Host "`tEnter '4' - Configure AD DS Connector Account Permissions"
    Write-Host "`tEnter '5' - Test Azure Active Directory Connectivity"
    Write-Host "`tEnter '6' - Test Active Directory Connectivity"
    Write-Host "`tEnter 'Q' - Quit"
    Write-Host "`r`n"
}

#
# Options for Object Synchronization Troubleshooting
#
function ObjectSyncMenu
{
    $isQuit = $false
    
    while ($true)
    {
        Show-ObjectSyncMenu

        $selection = Read-Host "`tPlease make a selection"

        Write-Host "`r`n"

        if ($selection -eq '1')
        {
            Debug-ADSyncObjectSynchronizationIssues -DiagnosticOption $global:DiagnoseObjectSyncIssues
        }
        elseif ($selection -eq '2')
        {
            Debug-ADSyncAttributeSynchronizationIssues -DiagnosticOption $global:DiagnoseAttributeSyncIssues
        }
        elseif ($selection -eq '3')
        {
            Debug-ADSyncGroupMembershipSynchronizationIssues
        }
        elseif ($selection -eq '4')
        {
            Debug-ADSyncObjectSynchronizationIssues -DiagnosticOption $global:ChangePrimaryEmailAddress
        }
        elseif ($selection -eq '5')
        {
            Debug-ADSyncObjectSynchronizationIssues -DiagnosticOption $global:HideFromGlobalAddressList
        }
        elseif ($selection -eq '6')
        {
            Debug-ADSyncObjectAttributeRetrievalIssues
        }
        elseif ($selection -eq 'B' -or $selection -eq 'b')
        {
            Write-Output $isQuit
            break
        }
        elseif ($selection -eq 'Q' -or $selection -eq 'q')
        {
            $isQuit = $true
            Write-Output $isQuit
            break
        }

        Write-Host "`r`n"
        Write-Host "`r`n"
    }    
}

#
# Options for Password Hash Synchronization Troubleshooting
#
function PasswordSyncMenu
{
    $isQuit = $false

    while ($true)
    {
        Show-PasswordSyncMenu

        $selection = Read-Host "`tPlease make a selection"

        Write-Host "`r`n"

        if ($selection -eq '1')
        {
            DiagnosePasswordHashSync
        }
        elseif ($selection -eq 2)
        {
            DiagnosePasswordSyncSingleObject
        }
        elseif ($selection -eq 3)
        {
            SynchronizeSingleObjectPassword
        }
        elseif ($selection -eq 'B' -or $selection -eq 'b')
        {
            Write-Output $isQuit
            break
        }
        elseif ($selection -eq 'Q' -or $selection -eq 'q')
        {
            $isQuit = $true
            Write-Output $isQuit
            break
        }

        Write-Host "`r`n"
        Write-Host "`r`n"
    }
}

#
# Options for Configuring Permissions
#
function ConfigurePermissionsMenu
{
    $isQuit = $false
    
    while ($true)
    {
        Show-ConfigurePermissionsMenu

        $selection = Read-Host "`tPlease make a selection"

        Write-Host "`r`n"

        if ($selection -eq '1')
        {
            ConfigureAccountPermissions -ConfigurationOption "GetADSyncADConnectorAccount"
        }
        elseif ($selection -eq '2')
        {
            ConfigureAccountPermissions -ConfigurationOption "GetADSyncObjectsWithInheritanceDisabled"
        }
        elseif ($selection -eq '3')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncBasicReadPermissions"
        }
        elseif ($selection -eq '4')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncExchangeHybridPermissions"
        }
        elseif ($selection -eq '5')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncExchangeMailPublicFolderPermissions"
        }
        elseif ($selection -eq '6')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncMsDsConsistencyGuidPermissions"
        }
        elseif ($selection -eq '7')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncPasswordHashSyncPermissions"
        }
        elseif ($selection -eq '8')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncPasswordWritebackPermissions"
        }
        elseif ($selection -eq '9')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncRestrictedPermissions"
        }
        elseif ($selection -eq '10')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncUnifiedGroupWritebackPermissions"
        }
        elseif ($selection -eq '11')
        {
            ConfigureAccountPermissions -ConfigurationOption "ShowADSyncADObjectPermissions"
        }
        elseif ($selection -eq '12')
        {
            ConfigureAccountPermissions -ConfigurationOption "SetADSyncDefaultPermssions"
        }
        elseif ($selection -eq '13')
        {
            Debug-ADSyncObjectAttributeRetrievalIssues
        }
        elseif ($selection -eq 'B' -or $selection -eq 'b')
        {
            Write-Output $isQuit
            break
        }
        elseif ($selection -eq 'Q' -or $selection -eq 'q')
        {
            $isQuit = $true
            Write-Output $isQuit
            break
        }

        Write-Host "`r`n"
        Write-Host "`r`n"
    }    
}

function Show-ObjectSyncMenu
{
    Write-Host "`r`n"
    Write-Host "------------------------------------Troubleshoot Object Synchronization------------------------------------"
    Write-Host "`r`n"
    Write-Host "`tEnter '1' - Diagnose Object Synchronization Issues"
    Write-Host "`tEnter '2' - Diagnose Attribute Synchronization Issues"
    Write-Host "`tEnter '3' - Diagnose Group Membership Synchronization Issues"
    Write-Host "`tEnter '4' - How to change Exchange Online primary email address"
    Write-Host "`tEnter '5' - How to hide mailbox from Exchange Online global address list"
    Write-Host "`tEnter '6' - Compare object read permissions when running in context of AD Connector account vs Admin account"
    Write-Host "`tEnter 'B' - Go back to main troubleshooting menu"
    Write-Host "`tEnter 'Q' - Quit"
    Write-Host "`r`n"
}

function Show-PasswordSyncMenu
{
    Write-Host "`r`n"
    Write-Host "--------------------------------Troubleshoot Password Hash Synchronization---------------------------------"
    Write-Host "`r`n"
    Write-Host "`tEnter '1' - Password Hash Synchronization does NOT work at all"
    Write-Host "`tEnter '2' - Password Hash Synchronization does NOT work for a specific user account"
    Write-Host "`tEnter '3' - Synchronize password hash for a specific user account"
    Write-Host "`tEnter 'B' - Go back to main troubleshooting menu"
    Write-Host "`tEnter 'Q' - Quit"
    Write-Host "`r`n"
}

function Show-ConfigurePermissionsMenu
{
    Write-Host "`r`n"
    Write-Host "--------------------------------------------Configure Permissions------------------------------------------"
    Write-Host "`r`n"
    Write-Host "`tEnter '1' - Get AD Connector account"
    Write-Host "`tEnter '2' - Get objects with inheritance disabled"
    Write-Host "`tEnter '3' - Set basic read permissions"
    Write-Host "`tEnter '4' - Set Exchange Hybrid permissions"
    Write-Host "`tEnter '5' - Set Exchange mail public folder permissions"
    Write-Host "`tEnter '6' - Set MS-DS-Consistency-Guid permissions"
    Write-Host "`tEnter '7' - Set password hash sync permissions"
    Write-Host "`tEnter '8' - Set password writeback permissions"
    Write-Host "`tEnter '9' - Set restricted permissions"
    Write-Host "`tEnter '10' - Set unified group writeback permissions"
    Write-Host "`tEnter '11' - Show AD object permissions"
    Write-Host "`tEnter '12' - Set default AD Connector account permissions"
    Write-Host "`tEnter '13' - Compare object read permissions when running in context of AD Connector account vs Admin account"
    Write-Host "`tEnter 'B' - Go back to main troubleshooting menu"
    Write-Host "`tEnter 'Q' - Quit"
    Write-Host "`r`n"
}

Export-ModuleMember -Function Invoke-ADSyncDiagnostics
Export-ModuleMember -Function Invoke-ADSyncSingleObjectSync

# SIG # Begin signature block
# MIInogYJKoZIhvcNAQcCoIInkzCCJ48CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAkSvwNRNjHZAVe
# vfdvZvyYHFdwNQdJidaVsVX8NWbbBaCCDYIwggYAMIID6KADAgECAhMzAAADXJXz
# SFtKBGrPAAAAAANcMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjMwNDA2MTgyOTIyWhcNMjQwNDAyMTgyOTIyWjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDw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