Re: unlock user account

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You can also use the NET USER command

NET USER loginname /DOMAIN /ACTIVE:YES

Regards
--
C.R. [mx]
MCSE


"kj [SBS MVP]" wrote:

pete0085 wrote:
Is there a way to unlock a user account through the command prompt?
I've been searching and haven't found much.

Scriptcenter sample;

Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com";)

objUser.IsAccountLocked = False
objUser.SetInfo


I'm sure admod would do it too.
http://www.joeware.net/freetools/tools/admod/index.htm

--
/kj



.



Relevant Pages

  • Re: unlock user account
    ... I've been searching and haven't found much. ... Scriptcenter sample; ... Set objUser = GetObject _ ...
    (microsoft.public.windows.server.active_directory)
  • Re: unlock user account
    ... Scriptcenter sample; ... Set objUser = GetObject _ ... I'm sure admod would do it too. ...
    (microsoft.public.windows.server.active_directory)