Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ADmodify custom LDAP query

0 views
Skip to first unread message

drpepper

unread,
Mar 29, 2006, 9:56:01 AM3/29/06
to
admodify v.2.1.2075:
i'm trying to do custom LDAP query againest exchange server name and when i
entered below string nothing is returned. can someone verify below string is
correct or not ?

(&(objectclass=user)(msExchHomeServerName=/o=Rome/ou=First Administrative
Group/cn=Configuration/cn=Servers/cn=MAIL1)

basically, i just want to able to filter users base on exchange server so i
can modify objects for those users.

Bharat Suneja

unread,
Mar 29, 2006, 10:13:04 AM3/29/06
to
Missing a ) at the end....

(&(objectclass=user)(msExchHomeServerName=/o=Rome/ou=First Administrative
Group/cn=Configuration/cn=Servers/cn=MAIL1))

--
Bharat Suneja
MCSE, MCT
www.zenprise.com
blog: www.suneja.com/blog
-----------------------------------------


"drpepper" <drpe...@discussions.microsoft.com> wrote in message
news:CDD7F3D9-072D-42F0...@microsoft.com...

drpepper

unread,
Mar 29, 2006, 10:39:02 AM3/29/06
to
thanks for quick reply..
i entered below string and it returned for everything.. it didn't filter out
based on mail1 server.. is there something else i suppose to do ?

(&(objectclass=user)(msExchHomeServerName=/o=Rome/ou=First Administrative
Group/cn=Configuration/cn=Servers/cn=MAIL1))

on the Show only tab: i checked users only.
uncheck: groups, contacts, public folders

below travers subcontainers ( subtree search ) uncheck..

i hit the green botton and it returned every users in the OU.

Bharat Suneja

unread,
Mar 29, 2006, 10:46:04 AM3/29/06
to
What are you trying to do? Get all mail recipients with mailboxes on that
server?

Use Custom Search | Advanced and paste the query. It should return all users
that have the servr as their home Exchange server.


--
Bharat Suneja
MCSE, MCT
www.zenprise.com
blog: www.suneja.com/blog
-----------------------------------------


"drpepper" <drpe...@discussions.microsoft.com> wrote in message

news:9CEC9ED1-A51F-49A9...@microsoft.com...

drpepper

unread,
Mar 29, 2006, 11:09:02 AM3/29/06
to
Q)
What are you trying to do? Get all mail recipients with mailboxes on that
server?
A)
Yes

in ADmodify.exe, there is no custom search or advanced tab.. i only have
custom LDAP query tab at the botton..

basically, i want to be able filter all the users base on exchange server so
that i can modify the objects.

drpepper

unread,
Mar 29, 2006, 11:09:02 AM3/29/06
to
do u have an email address where i can send u the print screen ?

Bharat Suneja

unread,
Mar 29, 2006, 11:26:58 AM3/29/06
to
Sorry... I didn't think about that at all -you're using ADModify... send me
a screenshot if you want. FirstnameLastname at hotmail.

--
Bharat Suneja
MCSE, MCT
www.zenprise.com
blog: www.suneja.com/blog
-----------------------------------------


"drpepper" <drpe...@discussions.microsoft.com> wrote in message

news:EBA2226B-C8F7-4AD5...@microsoft.com...

drpepper

unread,
Mar 29, 2006, 12:10:03 PM3/29/06
to
i just emailed the print screen to ur hotmail......

i printer 3 screen shot.. i entered the query below.. 2nd and 3rd screen
shot result returned samething. if u notice, one of them is with users
checked and other isn't..
is there something else i need to do to return the right query ?

(&(objectclass=user)(msExchHomeServerName=/o=Rome/ou=First Administrative
Group/cn=Configuration/cn=Servers/cn=MAIL1))

Bharat Suneja

unread,
Mar 29, 2006, 1:48:02 PM3/29/06
to
From ADModify docs:
- If you wish to narrow down the search filter even further, you may enter a
custom LDAP filter. Click the "Custom LDAP Query" button.
- Enter a valid LDAP query in here and hit OK.
- If the LDAP filter box is populated, it will override the check boxes for
Users, Groups, Contacts, and Public Folders.

Not sure if ADModify does what it says or I think it should be doing when
specifying the ldap filter - it showed all users in an OU, not those with
the msExchHomeServerName attribute matching the one specified in the filter.


--
Bharat Suneja
MCSE, MCT
www.zenprise.com
blog: www.suneja.com/blog
-----------------------------------------


"drpepper" <drpe...@discussions.microsoft.com> wrote in message

news:EDF0D505-B4E9-4EF2...@microsoft.com...

drpepper

unread,
Mar 29, 2006, 2:02:04 PM3/29/06
to
is there a solution for that or anything wrong with my syntex ?

Bharat Suneja

unread,
Mar 29, 2006, 2:15:31 PM3/29/06
to
Nothing wrong with the syntax - the query works in AD Users & Computers
console (a good way to test for queries targeting the domain naming
context.. ).

Not related, but what attributes are you trying to modify for these users?


--
Bharat Suneja
MCSE, MCT
www.zenprise.com
blog: www.suneja.com/blog
-----------------------------------------


"drpepper" <drpe...@discussions.microsoft.com> wrote in message

news:BD77488D-7BE9-4FEB...@microsoft.com...

drpepper

unread,
Mar 29, 2006, 3:03:02 PM3/29/06
to
i wanted to be able to rename homeMDB for all the users on that exchange
server.. reason why i want to get this test working, suming server failed,
crashed or offline, i wanted to able to swing everyone over to standby
exchange server and recovery from RSG database.


do u think we can get this working ?

0 new messages