+ Post New Thread
Results 1 to 3 of 3
Windows Server 2008 R2 Thread, Searching AD for users with a specific UPN, how? in Technical; As per title really, i've got 3 different UPNs, one is the .local, one is a .com and one is ...
  1. #1
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,447
    Thank Post
    349
    Thanked 254 Times in 209 Posts
    Rep Power
    98

    Searching AD for users with a specific UPN, how?

    As per title really, i've got 3 different UPNs, one is the .local, one is a .com and one is a .net.

    I want to remove the .com UPN completely but first i need to ensure no one is set to it and that they're set to the correct one. Doesn't appear to be an easy way of searching for this, can someone suggest an option for me?

  2. #2

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,689
    Thank Post
    334
    Thanked 515 Times in 483 Posts
    Rep Power
    179
    Which attribute is it for those 3? As I can only see one UPN.

    Steve

  3. #3
    mrbios's Avatar
    Join Date
    Jun 2007
    Location
    Stroud, Gloucestershire
    Posts
    2,447
    Thank Post
    349
    Thanked 254 Times in 209 Posts
    Rep Power
    98
    They're UPNs i've added manually in domains and trusts.

    but nevermind i've found something that'll do it using custom queries:
    (objectCategory=person)(objectClass=user)(userPrin cipalName=*@upn.suffix)

    replacing upn.suffix with the upn you're looking for, that seems to do the job.

    EDIT: why do i always do that, i spend ages trying to fix a problem, then think "sod it i'll ask edugeek" then within a short period of time after making the thread i'll find the solution >_<
    Last edited by mrbios; 26th November 2013 at 09:10 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. Facebook unveils social search tools for users
    By elsiegee40 in forum e-Safety
    Replies: 1
    Last Post: 18th January 2013, 02:01 PM
  2. Adding printer for users in domain
    By brickwall53 in forum Windows Server 2008 R2
    Replies: 11
    Last Post: 1st July 2011, 10:30 AM
  3. Ad Infinitum file format for user creation?
    By tazz in forum How do you do....it?
    Replies: 1
    Last Post: 28th August 2009, 05:26 PM
  4. AD Bulk User Creation Utility with extras?
    By gshaw in forum Windows
    Replies: 40
    Last Post: 6th July 2009, 11:36 PM
  5. Which CMS for use with AD?
    By alan-d in forum Web Development
    Replies: 6
    Last Post: 25th November 2006, 04:50 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •