DataGathering/ProtectionInformation-EXO.txt
#DO NOT MODIFY ANY OF THE COMMANDS BELOW
$Folder = "$env:temp\MSDataCollection" New-Item -Path $folder -ItemType Directory -erroraction silentlycontinue|out-null Set-Location $folder Get-HostedOutboundSpamFilterPolicy |export-clixml HostedOutboundSpamFilterPolicy.xml Get-HostedConnectionFilterPolicy |export-clixml HostedConnectionFilterPolicy.xml Get-HostedContentFilterPolicy |export-clixml HostedContentFilterPolicy.xml Get-HostedContentFilterRule | export-clixml HostedContentFilterRule.xml Get-MalwareFilterPolicy |export-clixml MalwareFilterPolicy.xml Get-MalwareFilterRule | export-clixml MalwareFilterRule.xml if (get-command *safelinks*) { Get-SafeAttachmentPolicy |export-clixml SafeAttachmentPolicy.xml Get-SafeAttachmentRule | export-clixml SafeAttachmentRule.xml Get-SafeLinksPolicy |export-clixml SafeLinksPolicy.xml Get-SafeLinksRule | export-clixml SafeLinksRule.xml } Get-DkimSigningConfig |export-clixml DkimSigningConfig.xml Get-AcceptedDomain | Export-Clixml accepteddomain.xml Invoke-Item $folder |