Specific account
Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires
Every Organization
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true
Specific account
Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires
Every Organization
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true
Connect via powershel with the account that had given read access
Get-MailboxFolder –Identity [email protected] –recuse | Add-MailboxFolderPermission –user [email protected] –AccessRights Reviewer
Now let’s remove the permission to send on behalf of
Set-Mailbox –Identity [email protected] –GrantSendOnBehalfto $null
Now add the email account in Microsoft Outlook:
File | Account Settings | Double click on account | More Settings | Advanced | Mailbox | Add | Enter the name of the Mailbox. OK an all screens.
Done.
Connect powershell (Office365)
Set-CASMailbox –Identity “[email protected]” –ActiveSyncEnable $false (enter)
Done
Connect powershell (Exchange Online)
Set-CasMailbox –Identity “[email protected]” –OWAEnable $False (enter)
Done
Connection powershell
1-) $LiveCred = Get-Credential
2-) $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
3-) Import-PSSession $Session
4-) Connect-MsolService
Get-Mailbox | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains contoso.com, xpto.com