![]() Once you complete this process, you can continue with the compliance action. Microsoft has a guide to connect using MFA. Note that these steps will not work if you use multi-factor authentication. Now run this command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection and finally run Import-PSSession $Session to initiate your session with the Security & Compliance Center. Now use the command $UserCredential = Get-Credential, and then enter your account email and password to log in. If it’s not, use the command Set-ExecutionPolicy RemoteSigned to enable running scripts on your computer. Make sure that you configure PowerShell to run scripts. Be sure to run this session as an administrator. Once you have a search that contains the message(s) you want to remove, it’s time to open PowerShell. Filter by date ranges, exact phrases, and/or subject-only searches to find the exact messages you need. Use the search filters to whittle down your results to find the message, or messages, that you need to remove. For this example, let’s call it “Virus message.” Give this search a descriptive name, as you will need to refer to this later. ![]() Under Search and Investigation section, do a Content Search. Start by going to the Office 365 Security & Compliance Center in a web browser. If this happens, it’s possible to use the Security and Compliance Center and PowerShell to remove these harmful phishing and virus messages from inboxes. Office 365 has protections against phishing and virus emails in Outlook, but sometimes malicious messages slip past security measures.
0 Comments
Leave a Reply. |