With Office365 you can have profile pictures, and this setting is enabled by default. In larger organizations you may not want this policy enabled or have a customized policy for different departments. Here’s what I had to do to disable the picture upload capability by default and use powershell to update it for individuals by…
Tag: office365
Cannot migrate user from Exchange 2010 to Exchange Online
So I came across this error while migrating some accounts from On-Premise Exchange 2010 Server to Exchange Online. Error: The subscription for the migration user [email protected] couldn’t be loaded. The following error was encountered: A subscription wasn’t found for this user. In short, there is an address conflict between the user properties of the exchange…
Enabling ActiveSync for a Security Group using Powershell
1 2 3 4 5 6 |
$users = Get-ADGroupMember "AD Group with Users to be Enabled for ActiveSync" foreach ($line in $users) { $user = $line.samaccountname Set-CASMailbox $user -ActiveSyncEnabled:$true Get-CASMailbox $user | Select-Object Name, ActiveSyncEnabled } |
Disabling ActiveSync for a Group of Users using Powershell
I have tested this only in a Hybrid environment. Create a Universal AD Security Group called O365_Disabled_ActiveSync_Users. Add all the members to it. Make sure it has an email address that registers in Office365. Connect to Office365 via Powershell ISE:
1 2 3 4 5 |
Import-Module MSOnline $O365Cred = Get-Credential $O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection Import-PSSession $O365Session Connect-MsolService –Credential $O365Cred |
Copy the following code in a file called DisableActiveSync.ps1 and run in powershell. Add…
Send Email from an Alias
A user who has two or three (or a dozen) SMTP aliases associated with his name wants to actually send an email and have it appear to be from one of those aliases! I bet you tested and confirmed that he could receive email to those aliases, but now you are stuck trying to figure out why he cannot send as…
Assign a Room Mailbox Permissions
If we want to check the detail information of the room mailbox schedule or change the permission level of the Calendar permission.  We should do the following steps:  Add a user as a full permission to the room mailbox via PowerShell: Assign Permission Add-MailboxPermission -Identity “[email protected]†-User “[email protected]†-AccessRights Fullaccess -InheritanceType All Open room mailbox…
Close Powershell Sessions!
If you have ever received the error message below or a similar one then you are not closing your PowerShell sessions properly (or at all!). [serverName] Connecting to remote server failed with the following error message : The WS-Management service cannot process the request. This user is allowed a maximum number of 3 concurrent shells,…
Set a Room Mailbox to Show Details of a Meeting in its Calendar
You may notice that meetings with a ‘Room’ mailbox will by default only show a “Busy†status. Many, including the organisation I work for, wish to have (at the very minimum) the following displayed in the Room’s calendar: Organiser of the meeting, and The subject of the meeting Below I will demonstrate how to set…
Grant & Revoke Access to Mailboxes
There may be times where you may need to grant an IT administrator or other employees access to another user’s mailbox. Below I will demonstrate how to: Grant an Admin access to a single mailbox Grant an Admin access to all mailboxes Revoke the above permissions (recommended cause of action after the Administrator has finished…
Remove Password Expiration
Many customers ask me the question how they can remove password expiration on their Office 365 environment. With the PowerShell command below this can be achieved: First make sure you have the remote signed execution policy set to true. You can do this by running PowerShell in admin mode and running:Â Set-ExecutionPolicy RemoteSigned Next, run the…