ExchangeOnlineManagement 3.1.0

The Exchange Online Powershell V1 module is now deprecated. We need to use the Exchange OnlinePowershell V3 module instead. Command to install Modulehttps://www.powershellgallery.com/packages/ExchangeOnlineManagement/3.1.0 Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.1.0 Command to connect Import-Module ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName [email protected] See the KB below. https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps https://learn.microsoft.com/en-us/powershell/exchange/connect-to-scc-powershell?view=exchange-ps https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-protection-powershell?view=exchange-ps

How to hide users from the GAL in Office 365 synchronized from on-premises

Hiding users from the Global Address List (GAL) is fairly straightforward when the user is a cloud account. Simply “Hide from address list” from the Exchange Online console or run some quick PowerShell: $LiveCred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection Import-PSSession $Session Set-Mailbox -Identity [email protected] -HiddenFromAddressListsEnabled $true

Powershell to get list of AD Users and their ProfilePath and HomeDirectory

To ensure consistency it is often desirable to run a script periodically to confirm all users are setup as expected. The following powershell script can help with obtaining ProfilePath, HomeDirectory and HomeDrive. In an elevated (run as Administrator) powershell window run the following:Get-ADUser -Filter ‘enabled -eq $true’ -Properties ProfilePath, HomeDirectory, HomeDrive | Select Name, SamAccountName,

Enable or disable mailbox audit logging for a mailbox

This example enables mailbox audit logging for Ben Smith’s mailbox. Set-Mailbox -Identity “Ben Smith” -AuditEnabled $true This example enables mailbox audit logging for all user mailboxes in your organization. Get-Mailbox -ResultSize Unlimited -Filter “RecipientTypeDetails -eq ‘UserMailbox’” | Select PrimarySmtpAddress | ForEach {Set-Mailbox -Identity $_.PrimarySmtpAddress -AuditEnabled $true} This example disables mailbox audit logging for Ben Smith’s

Outlook Add-In keeps disabling

1. Be an Administrator Make sure you run Outlook as an Administrator when you enable the add-in (Right-click – Run as Administrator) 2. Force Outlook to always enable the add-in When using CRM for Outlook, users can force the add-in to always be enabled. On the File tab, click <Slow and Disabled COM Add-ins>. You’ll