I use the following code to reset a locked account:
userid = "someUser"
Set objUser = GetObject("WinNT://server/
" & userid)
objUser.AccountDisabled = False
Set objUser = Nothing
But I get the following error when executed while logging as a user with delegated privileges:
Active Directory error '80070005'
General access denied error
I followed the same steps mentioned in the microsoft KB article for delegating permissions:
Is there anything I have missed out?