header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Find a list of user's OUs
Last Post 24 Oct 2011 11:21 AM by Karl Mitschke. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
jk2nyUser is Offline
New Member
New Member
Posts:23
Avatar

--
24 Oct 2011 08:42 AM
    I have a list of usernames, I am trying to find what OUs these users are in (across multiple domains)

    Any ideas on where to start.. I've tried using get-user, get-aduser, get-qaduser and just havent had luck yet
    Karl MitschkeUser is Offline
    Basic Member
    Basic Member
    Posts:457
    Avatar

    --
    24 Oct 2011 11:21 AM
     $users | Get-User -IgnoreDefaultScope | Select-Object -Property DisplayName, OrganizationalUnit 

    Karl
    http://unlockpowershell.wordpress.com
    Co-Author, Windows PowerShell 2.0 Bible
    -join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer