Re: Script to list out users with enabled outlook mobile access in



here is your script, all you need to do is to change the server name to your
mail server name, and run it

http://smtp25.blogspot.com/search/label/Scripts

Copy and paste the entire code into notepad

Change the server name, into your server name (ServerList = Array("server1",
"server2", "server3")

Save the file on your Hard drive as mailboxCount.vbs ( c:\ mailboxCount.vbs)

Now go to command line

Drill down to same directory ( c:\ mailboxCount.vbs)

Run the file by typing, c:\ mailboxCount.vbs


best
oz



--
Oz Ozugurlu
Systems Engineer
MCSE 2003| M+| S+
MCDST | Security+|Project+

oz@xxxxxxxxxx
http://smtp25.blogspot.com (Blog)


"Ed Crowley [MVP]" wrote:

Upon further reflection, I figured out how you can execute such a query. It
should look something like this:

(&(objectClass=user)(homeMDB=*)(!(msExchOmaAdminWirelessEnable:1.2.840.113556.1.4.803:=2)))
--
Ed Crowley
MVP - Exchange
"Protecting the world from PSTs and brick backups!"

"Ed Crowley [MVP]" <curspice@xxxxxxxxxxxxxx> wrote in message
news:OFOiWnd5HHA.3400@xxxxxxxxxxxxxxxxxxxxxxx
You need to find all users in AD with the attribute
msExchOmaAdminWirelessEnable having its 0x2 bit clear. (The bit being set
means the feature is disabled, which is backward from what I would infer
from the attribut name being "...Enable"; go figure.) Because we're
looking for a single bit being clear, I can't see a way to do this in a
single LDAP query, so what I would do is query for all users (or some
subset you want) and then iterate through the recordset and look at each
value of this attribute for the desired bit setting.
--
Ed Crowley
MVP - Exchange
"Protecting the world from PSTs and brick backups!"

<mrhanseide@xxxxxxxxx> wrote in message
news:1187900372.939544.246830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How can i list out all the users in a AD that has enabled outlook
mobile access on exchange in a vbs script?
It Should be possible, but i have problem finding it out...

Hans Eide






.