Geeks With Blogs

Lance's TextBox » About Me » My Resume »Twitter

 

PS C:\> get-ldap -server testboy -cred $mycred -dn dc=JUNGLE -searchscope wholesubtree 
-search "(&(objectclass=user)(objectclass=person)(company=*)(userAccountControl:1.2.840.113556.1.4.803:=2))"

 

Again, there's no need for dozens of LDAP cmdlets.  The two LDAP cmdlets included in NetCmdlets, get-ldap and set-ldap, are all you need for most tasks.  The above command shows how you would search for disabled user accounts with the get-ldap cmdlet.

Posted on Tuesday, August 14, 2007 10:51 AM PowerShell | Back to top


Comments on this post: LDAP PowerShell - Search for Disabled User Accounts

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Lance Robinson | Powered by: GeeksWithBlogs.net