Written by Divya Gunasekaran, Microsoft Online Services PM
Admins can now manage client access settings for their Microsoft Online users through PowerShell. Updates to Get-MSOnlineUser and the new Set-MSOnlineCASMailbox cmdlet allow admins to specify whether Exchange ActiveSync or Outlook Web App (OWA) is enabled for users.
1. Get-MSOnlineUser: This cmdlet can be used to retrieve the properties of a specified user in Microsoft Online Services. Three properties have been added to the output of this cmdlet:
2. Set-MSOnlineCASMailbox: This cmdlet can be used to enable or disable ActiveSync or Outlook Web App for a user’s mailbox.
C:\PS>Set-MSOnlineCASMailbox -Identity firstname.lastname@example.org -Credential $companyAdminCred -ActiveSyncEnabled False -OWAEnabled True
C:\PS>Import-Csv –path C:\CASmailboxes.csv | Set-MSOnlineCASMailbox -Credential $companyAdminCred
Please note that the Set-MSOnlineCASMailbox cmdlet does not modify or remove the ActiveSync policy currently assigned to a user’s mailbox. If an ActiveSync policy has been assigned to a user mailbox and ActiveSync is then disabled, the same policy will be applied after ActiveSync has been re-enabled for that user. If no ActiveSync policy has been assigned to the user mailbox, the default policy will be applied when ActiveSync is enabled.
To use the updated cmdlets, admins must download the latest 32-bit or 64-bit version of the Microsoft Online Services Migration Tools.