DataGathering/OfficeApps.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 [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null $CloudMailbox = [Microsoft.VisualBasic.Interaction]::InputBox("Enter the Cloud Mailbox's UserPrincipalName in the format user@domain.com", "CloudMailbox") Get-OrganizationConfig | Export-Clixml orgconfig.xml get-app -OrganizationApp | Export-Clixml orgapp.xml Get-App -Mailbox $CloudMailbox | Export-Clixml mbxapp.xml Get-Mailbox $CloudMailbox | Export-Clixml mbx.xml Get-RoleAssignmentPolicy | Export-Clixml RAP.xml Invoke-item $Folder |