Thanks for that Gargoyle,

I alread have the Winnt script which unlocks the accounts however its very slow, I would like to use the LDAP method which is much quicker at query the AD accounts, I'm sure there is a way!!