powershell

Set password to never expire Office 365

Specific account

Get-MSOLUser -UserPrincipalName <user ID> | Select PasswordNeverExpires

 

Every Organization

Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $true

Read Permission to the Shared Mailbox Office 365

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.

Disable Access account mobile (Iphone, Android, Windows Phone)

Connect powershell (Office365)

Set-CASMailbox –Identity [email protected]” –ActiveSyncEnable $false (enter)

 

Done

Mail Protection Reports for Office 365

Download da ferramenta

http://www.microsoft.com/pt-br/download/details.aspx?id=30716

Instalação

image

Escolha a opção que melhor atende seu ambiente

Pré-requisitos

image

Next Install

image

Finish

Icon “Mail Protection Report”

image

 

image

image

Install Plugin

image

After install

image

Click “Consult”

Enter user name and password office365

image

wait a few moments and choose the period

image

wait a few more moments

image

image

image

Done

image

Forward e-mail synchronized with Active Directory Exchange Online

Creating forwarding emails (Synchronization with Active Directory)

Connect 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

Command

Set-Mailbox Contato –ForwardingSmtpAddress [email protected]om –DeliverToMailboxAndForward $false

 

Contato = Mailbox that will receive forwarding to another email
[email protected] = E-mail address that will receive the forwarding mailbox contact

Adding secondary SMTP users to synchronize with Active Directory

 

Synchronized objects in Active Directory, we can not make any changes in Exchange Online.
To add a user for secondary SMTP example:

[email protected] as primary SMTP and
[email protected] as secondary SMTP

Access:

image

Then select the object:

image

Right / Properties / Attributes

Locate ProxyAddress

image

image

add secondary SMTP:
SMTP: [email protected]

Ok in all screens can force synchronization or wait for the normal period synchronization of Exchange Online, it also serves to distribution groups.