I have changed the windows administrator password using the command
net user userid newpassword
But i realized that both the passwords are working. ( old and new)
how i can inactivate the oldpassword . any command thru command center only?
Printable View
I have changed the windows administrator password using the command
net user userid newpassword
But i realized that both the passwords are working. ( old and new)
how i can inactivate the oldpassword . any command thru command center only?
May I ask why ONLY through the command center? There are many ways to change a password. Simple way is under the Admin account press Ctrl, Alt, Del. And select change password.
Or under "right click" on My computer go to "Manage". THere you can change passwords.
Yes i want to know through only command center. Infact i will be running these commands thru VB.NET application. ( Through shell commands its possible to execute the command center commands). So want to know the command for deactivating the old password.
Moreover i see that both the passwords work for logging in to windows.
Here is the command
cmd /c net user {userid} password {password}
Well looking at this, why are you using /C? what does this do.
Type in "net user ?"
It will then give you the Syntax of that command.
I see it is Net User [Username [password | *] [Options]] [/Domain]
all /c does is terminate the window once its done the command :s i dont see ho w that would help is the account on the domain? or is it local ? if its on the domain try a gpupdate /f on the server
why do you want your vb app to change the password of the admin account in the first place?
If it is a domain account then the old password is be available on roaming workstations such as laptops until they logon to the domain again. Both passwords should not continue to work unless there is a problem with the domain configuration.Quote:
Originally Posted by NehaRao