PowerShell ยป Get-ActiveSyncMailboxPolicy

Get-ActiveSync Policy Details Using PowerShell

Your download is in progress and it will be complete in just a few seconds! If you face any issues, download manually here
Stay informed about Exchange with
Exchange Reporter Plus
  • Please enter business email address
  •  
    By clicking 'Proceed to Download', you agree to processing of personal data according to the Privacy Policy. You can unsubscribe from our mails at anytime.
Exchange Online Reports

Description: The Get-ActiveSyncMailboxPolicy cmdlet retrieves the mobile device mailbox policy settings for a specific mobile device mailbox policy.

This cmdlet works for Exchange servers earlier than 2013. For Exchange 2013 or later, Get-MobileDeviceMailboxPolicy cmdlet should be used instead.

What is a mobile device policy.

A mobile device mailbox policy is a group of settings that specifies how ActiveSync enabled mobile devices connect to the Exchange Server.

The Get-ActiveSyncMailboxPolicy cmdlet displays all the policy settings for the specified policy. These settings include password settings, file access settings and attachment settings.

In Exchange, sepcific permissions are required to run a cmdlet. To find the permissions required to run any cmdlet or parameter, use the PowerShell script given below

To find the permissions required to run an Exchange cmdlet

Run the following command to identify the cmdlet and, optionally, one or more parameters of the cmdlet. Replace <Cmdlet> and optionally, <Parameter1>,<Parameter2>,... with the actual cmdlet and parameter names you are interested in. If you specify multiple parameters separated by commas, only the roles that include all of the parameters are returned.

$Perms = Get-ManagementRole -Cmdlet <Cmdlet> [-CmdletParameters <Parameter1>,<Parameter2>,...]

The results contain:

  • Role:  This indicates the role that gives access to the cmdlet or the combination of cmdlet and parameters. Note that role names that begin with "My" are user roles that allow regular users to operate on objects they own (for example, their own mailbox or their distribution groups).

  • RoleAssigneeType and RoleAssigneeName: These values are inter-related. RoleAssigneeType is the type of object that has the role assigned to it, and RoleAssigneeName is the name of the object. RoleAssigneeType can be a role group, role assignment policy, security group, or user. Typically, administrator roles are assigned to role groups.

Example PowerShell scripts

Example 1:
1 Get-ActiveSyncMailboxPolicy -Identity "DepartmentPolicy"

This example returns the policy settings for the Mobile Device mailbox policy named DepartmentPolicy.

Example 2:
1 Get-ActiveSyncMailboxPolicy -Identity "Managers"

This example returns the policy settings for the Mobile Device mailbox policy named Managers.

Generate reports on Exchange servers with Exchange Reporter Plus

As aforementioned, you need specific permissions to run a cmdlet in Exchange and those permissions vary based on the parameter you need to retrieve. With Exchange Reporter Plus you don't have to go through this tedious process of assigning permissions and writing lengthy scripts. All you have to do is download Exchange Reporter Plus and configure your Exchange Servers. You will have instant access to more than 200 pre-defined reports on Exchange mailbox size, mail traffic, mailbox permissions, and other aspects including 20 exclusive reports on ActiveSync and OWA.

generate-reports-on-exchange-servers-with-exchange-reporter-plus

Read more about the mailbox reports of Exchange Reporter Plus,here.

Office 365 Security Reports Office 365 Health Monitoring Exchange Audit Logs Skype for Business Reports