It's a shell, which is Powerful
http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx
How to find a User's OU in Powershell...
(1) Get Powershell on the machine
a. Open up Powershell
(2) Type in these commands:
a. $searcher=New-Object DirectoryServices.DirectorySearcher
b. $searcher.Filter="(&(objectcategory=person)(objectclass=user)(sAMAccountname=Dapostola))
c. $results=$searcher.FindOne()
d. $results.path
(3) You should see a display of the LDAP path.
How to find a User's OU in Powershell...
(1) Get Powershell on the machine
a. Open up Powershell
(2) Type in these commands:
a. $searcher=New-Object DirectoryServices.DirectorySearcher
b. $searcher.Filter="(&(objectcategory=person)(objectclass=user)(sAMAccountname=Dapostola))
c. $results=$searcher.FindOne()
d. $results.path
(3) You should see a display of the LDAP path.

0 Comments:
Post a Comment
<< Home