Get All AIP encrypted files - SharePoint Online

One of the recent project merger and acquisition.  Technology - M365 tenant to Tenant migration Areas of consolidation 1. Mailboxes  2. SharePoint online data 3. OneDrive for Business data 4. Teams data migration 5. Security and Compliance Migration  Area of concern from security and compliance side was the encrypted files within EXO, SPO, Teams, ODB. Issue with encrypted data migration - end users will not be able to access the documents once the Source tenant is decommissioned.   Solution available -  Ask end users to unencrypt the data before migration  Alternet Solution - 1. Decrypt the files, mails using eDiscovery - This will give us output in PST format will is available for offline access, but the data in source will still be encrypted.  Decryption in eDiscovery - Microsoft Purview (compliance) | Microsoft Docs   2. Use Get-AIPfileLabel and Get-AIPFileLabel but in order to use this you must be aware of all the files paths.  Challenges -  1. We do not want end user intervention

Forward emails from shared mailbox to external network or within Org


You can forward the emails which are received on shared mailbox to external users through PowerShell.

Please run the below mentioned commands. Open Windows PowerShell as an administrator (use Run as administrator).


Set-ExecutionPolicy RemoteSigned

$credential = Get-Credential

 Import-Module MsOnline

$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "https://outlook.office365.com/powershell-liveid/" -Credential $credential -Authentication "Basic" –AllowRedirection

Import-PSSession $exchangeSession –DisableNameChecking

There are two options to set forwarding.

1. First sets the mailbox to forward but doesn’t keep a copy so when you look in the mailbox it will always be empty

Set-Mailbox user@.yourdomain.com –ForwardingSmtpAddress user@domain.com –DeliverToMailboxAndForward $false



2. Second which does keep a copy of the mail and forwards the mail.

 Set-Mailbox user@.yourdomain.com –ForwardingSmtpAddress user@domain.com –DeliverToMailboxAndForward $false



In the above command “user@yourdomain.com”  represents the shared mailbox and user@domain.com represents the external user.

Comments

  1. seond should have delivertomailboxandforward $true not false

    ReplyDelete
  2. We also create informative articles. Visit https://www.cloudbik.com for more information.

    ReplyDelete

Post a Comment

Popular posts from this blog

Error - AttributeValueMustBeUnique in Azure AD connect sync

Error - QuarantinedAttributeValueMustBeUnique

Add members to office 365 Security Group Using PowerShell and CSV

Enforce MFA using CSV

Analyze Office 365 Message headers