Tenant/Get-HawkTenantConfiguration.ps1

# Gathers basic tenant information and generates output
## TODO: Put in some analysis ... flag some key things that we know we should
## Auditing Off
## Dig thru transport rules and look for ones forwarding or turfing mail
Function Get-HawkTenantConfiguration {
    
    Test-EXOConnection
    Send-AIEvent -Event "CmdRun"
    
    #Check Audit Log Config Setting and make sure it is enabled
    Out-LogFile "Gathering Tenant Configuration Information" -action
    
    Out-LogFile "Admin Audit Log"
    Get-AdminAuditLogConfig | Out-MultipleFileType -FilePrefix "AdminAuditLogConfig" -txt -xml
    
    Out-LogFile "Organization Configuration"
    Get-OrganizationConfig| Out-MultipleFileType -FilePrefix "OrgConfig" -xml -txt
    
    Out-LogFile "Remote Domains"
    Get-RemoteDomain | Out-MultipleFileType -FilePrefix "RemoteDomain" -xml -csv
    
    Out-LogFile "Transport Rules"
    Get-TransportRule | Out-MultipleFileType -FilePrefix "TransportRules" -xml -csv
    
    Out-LogFile "Transport Configuration"
    Get-TransportConfig | Out-MultipleFileType -FilePrefix "TransportConfig" -xml -csv    
    
    <#
  
    .SYNOPSIS
    Gathers basic tenant information.
 
    .DESCRIPTION
    Gathers information about tenant wide settings
    * Admin Audit Log Configuration
    * Organization Configuration
    * Remote domains
    * Transport Rules
    * Transport Configuration
     
    .OUTPUTS
    File: AdminAuditLogConfig.txt
    Path: \
    Description: Output of Get-AdminAuditlogConfig
 
    File: AdminAuditLogConfig.xml
    Path: \XML
    Description: Output of Get-AdminAuditlogConfig as CLI XML
 
    File: OrgConfig.txt
    Path: \
    Description: Output of Get-OrganizationConfig
 
    File: OrgConfig.xml
    Path: \XML
    Description: Output of Get-OrganizationConfig as CLI XML
 
    File: RemoteDomain.txt
    Path: \
    Description: Output of Get-RemoteDomain
 
    File: RemoteDomain.xml
    Path: \XML
    Description: Output of Get-RemoteDomain as CLI XML
 
    File: TransportRules.txt
    Path: \
    Description: Output of Get-TransportRule
 
    File: TransportRules.xml
    Path: \XML
    Description: Output of Get-TransportRule as CLI XML
 
    File: TransportConfig.txt
    Path: \
    Description: Output of Get-TransportConfig
 
    File: TransportConfig.xml
    Path: \XML
    Description: Output of Get-TransportConfig as CLI XML
     
    #>

    
}