unlocking an account

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
 
B

Bill Stewart

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
 
R

Ray at

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
 
N

NuT CrAcKeR

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
 
R

Ray at

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
 
N

NuT CrAcKeR

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
 
N

NuT CrAcKeR

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.
 
D

drt

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
 
B

Bill Stewart

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
 
N

NuT CrAcKeR

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
 
S

Scott Losawyer

it does indeed unlock the account.

I used it all the time in both NT and 2k domains
 
J

jb

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
 
T

Torgeir Bakken (MVP)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top