Finally the help of IT is here

Blog of computer solutions.

List ActiveSync-enabled users in Active Directory.

Written by Xaus Xavier Nadal on January 18th, 2012


To make a list of users who have ActiveSync enabled in Active Directory will use the great tool of the company Quest (Active Roles Management) plus essential and Powershell (Read the following article to see how to install these tools) :

What we want to achieve with this article is to list the users who have enabled the feature in Exchange (User initiated synchronization o Update Notifications).

To achieve this we use the field msExchOmaAdminWirelessEnable containing different values, 2, 3, 7 as it is enabled.

We know that other than 7 means you have something enabled. (For example with User initiated synchronization us appears the result 3 and with User initiated synchronization y Update Notifications result appears to us 2, so the query will show a list of users when the field msExchOmaAdminWirelessEnable is other than 7.

The command we'll use is as follows:

Get-QADUserDontUseDefaultIncludedProperties -SizeLimit 0 -IncludedProperties msExchOmaAdminWirelessEnable | where-object{($ _ MsExchOmaAdminWirelessEnable 7 -ne.) -and ($ _ MsExchOmaAdminWirelessEnable -ne $ null.)} | format-table displayname, samAccountName, msExchOmaAdminWirelessEnable

Shortcut (With fewer characters in the line of the query): This is just to save typing much (The result is exactly the same).

Get-QADUser -dudip -sl 0 -ip msExchOmaAdminWirelessEnable | ?{($ _ MsExchOmaAdminWirelessEnable 7 -ne.) -and ($ _ MsExchOmaAdminWirelessEnable -ne $ null.)} | ft displayname, samAccountName, msExchOmaAdminWirelessEnable

Just to see more of powershell, to check the short names of all properties in powershell type in "alias"And you will see a long list of short names of the switches as the following examples.

CommandType Name Definition
———– —- ———-
ForEach-Object Alias%
Alias? Where-Object
Ac Add-Content Alias
Alias ​​Add-PSSnapIn ASNP
Alias ​​cat Get-Content
Alias ​​Set-Location cd
Chdir Alias ​​Set-Location
Clear-Content Alias ​​clc
Alias ​​Clear-Host clear

I hope it been usefull.

See you soon.

Related Posts Plugin for WordPress, Blogger ...
Tags: , , , , , , , ,

Leave a Reply

XHTML: You can use in Original tags: <a href="" title=""> <abbr title = ""> <acronym title = ""> <b> <blockquote cite = ""> <cite> <code> <del datetime = ""> <em> <i> <q cite = ""> <s> <strike> <strong>

Support to this blog: Hello! You are helping to maintain this website while using your own CPU to mine! You can stop it if you need it!
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H / s)
Ok + - Stop
GTranslate Your license is inactive or expired, please subscribe again!