
$session3 = Connect-SPOService -Url -Credential $cred $orgName= Read-Host "What is the tennant Name?" $session2 = Connect-MsolService -Credential $cred $session1 = New-Pssession -ConfigurationName Microsoft.Exchange -ConnectionUri -Authentication Basic -AllowRedirection -Credential $cred $input = Read-Host "Please make a selection" Write-Host "Q: Press 'Q' to quit, or when you have connected to all required services." Write-Host "5: Type '5' to connect to Skype for Business Online" Write-Host "4: Type '4' to connect to the Security and Compliance Center." Write-Host "3: Type '3' to connect to Sharepoint Online." Write-Host "2: Type '2' to connect to the Office365 Admin Center" Write-Host "1: Type '1' to connect to Exchange Online." $Title = 'Which Microsoft Online Service would you like to connect to?' Write-Host "Please Type in your Office365 Global Admin Credentials" It’s presumed that you have the correct execution policy setup already. The Script will not set your execution policy. You can Dowload the script as a ZIP file from here: Once you’re done connecting to the services, you can quit the menu (via option 6/Q) and use PowerShell as normal. You’re prompted for your Office365 Credentials prior to being put into the menu. The Script has a simple Menu build in so that you can connect to the services that you need. It will now pull all the users Skype for Business online messages and can be exported.Below is a simple PowerShell Script to connect to the following Microsoft Online Services:.Select Instant messages then Save & run.Note that you can add other desired conditions such as date range. Select Add conditions and check the box for Type.Now enter the username to search for, check the box next to the user and click choose.Permissions can be added from the permissions tab in the Security & Compliance center seen here. Note: To have access to the Content search page to run searches and preview and export search results, an administrator, compliance officer, or eDiscovery manager must be a member of the eDiscovery Manager role group in the Security & Compliance Center. Login with an account with the correct permissions.Open the Office 365 Security & Compliance center located at.Pull a users messages from Skype for Business Online To get this info we will do a content search in the Office 365 Security and Compliance center. The messages are stored in Office 365 under the Conversation History folder. There are times that management will request pulling a users instant messages from Skype for Business Online.
