unlocking an account

  • Thread starter Thread starter NuT CrAcKeR
  • Start date Start date
N

NuT CrAcKeR

Hello group,

is there a way from a command line, or via a .vbs script, that I can unlock
an account?

Thanks,

NuTs
 
Ray at said:
net user username /active:yes
net user username /active:yes /DOMAIN

That will configure whether an account is disabled or not, but it won't
unlock it.

Resource Kit tool cusrmgr.exe says it can do this:

cusrmgr -u user -m \\domaincontroller -s AccountLockout

Regards,

Bill
 
That is what I thought by the name of the option, but I purposely locked a
test account with invalid logons, and this command did unlock it. ?

Ray at work
 
That is pretty nifty.. but if my interpretation of the usage is correct....
is this only for local machine? Or, if when used in an AD environment, is
the name of a DC specified?

Thanks,

NuTs
 
If in a domain, you use the /DOMAIN switch. That's the literal word, DOMAIN.
Don't replace that with your domain name.

Ray at work
 
looking at the usage example sited below, I dont see a /domain switch:

usage: -u UserName [-m \\MachineName] \\ default LocalMachine

So.,, -m \\domaincontroller (as indicated in the provided example) is my
answer.

My applogies for not catching that before.

Thanks for the assist.

NuTs
 
No worries... this is an imperfect communication medium.

NuTs

Ray at said:
Oops. I thought you were asking about the "net user" syntax.

Ray at work

NuT CrAcKeR said:
looking at the usage example sited below, I dont see a /domain switch:

usage: -u UserName [-m \\MachineName] \\ default LocalMachine

So.,, -m \\domaincontroller (as indicated in the provided example) is my
answer.

My applogies for not catching that before.

Thanks for the assist.
 
net user xxxxx /active:yes /domain

Assumes that you have the permissions to do so and that the machine is a
member of the domain that you are unlocking the account in.

drt
 
Ray at said:
That is what I thought by the name of the option, but I purposely locked
a test account with invalid logons, and this command did unlock it. ?

I do confess that I never tried that. The fact that the account gets
unlocked is maybe a side-effect of re-enabling it?

In any case, thanks for the info...

Regards,

Bill
 
True... my fault for not being more succinct.

however, isnt there an impliend "how is this done" when someone asks if
something is doable?
Just pondering out loud, so to speak.

NuTs
 
it does indeed unlock the account.

I used it all the time in both NT and 2k domains
 
excuse me for this post if this is the wrong
place....but...i'm sort of new to IT stuff. I locked
myself out of my computer, i have forgot the admin
password, but, i did set another username with admin
rights. unfortunitly, i cannot log on to my computer
using any users including the one that has admin rights.
I'm not sure if what you guys are saying is my fix, and,
not sure how to use this info in this post. can someone
dumb it down for me? in other words, i really don't know
what i'm doing, and need help, please...

jb
 
jb said:
excuse me for this post if this is the wrong
place....but...i'm sort of new to IT stuff. I locked
myself out of my computer, i have forgot the admin
password, but, i did set another username with admin
rights. unfortunitly, i cannot log on to my computer
using any users including the one that has admin rights.
I'm not sure if what you guys are saying is my fix, and,
not sure how to use this info in this post. can someone
dumb it down for me? in other words, i really don't know
what i'm doing, and need help, please...

Hi

Take a look here:
http://securityadmin.info/faq.htm#password
 
Back
Top