Of course you are right on this one. I was under impression that WinNT
provider accepts delegation. I should have used objUser.IsAccountLocked =
False, but as you said WinNT provider doesn't work.
Interesting part is, that there is a script located at
http://support.microsoft.com/?id=250873 which suggests that WinNT provider
is a way to go, because LDAP is not functioning. I went and tested what you
said and now I know something more
![Smile :-) :-)](/styles/default/custom/smilies/smile.gif)
. So
Set objUser = GetObject("LDAP://cn=TestUser,ou=IT Test,dc=nwtraders,
dc=msft")
objUser.Put "lockoutTime",0
objUSer.SetInfo
will work and unlock the account and work according to delegated rights,
where as WinNT provider will return Access denied error.
--
Regards
Matjaz Ladava, MCSE, MCSA, MCT, MVP
Microsoft MVP - Active Directory
(e-mail address removed), (e-mail address removed)
http://ladava.com
Joe Richards said:
You actually want to delegate WP to the lockoutTime attribute and if you
write a script simply punch a zero into that
attribute. I haven't tested it but I think if you try the method below you
will still get some errors as the WinNT
provider doesn't really use AD delegation, it uses the NET API calls which
usually require Acc Op or Admin access
rights.
If you look at the listing for unlock on my web site you will see a DSACLS
command to actually do the delegation as