How about this bit of scipt have i coded it correctly as it does not see to work.

 Code:
  
WHERE objectCategory='user' AND displayName = 'username' AND objectCategory = 'Person' AND objectClass = 'User' & ' userAccountControl:1.2.840.113556.1.4.803:=2' ORDER BY Name"


Edited by 5861king (2009-05-02 01:50 AM)