Results 1 to 8 of 8

Thread: [RESOLVED] Changing the Password

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2007
    Posts
    58

    Resolved [RESOLVED] Changing the Password

    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?

  2. #2
    Fanatic Member Lerroy_Jenkins's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    661

    Re: Changing the Password

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

    "η β π", or "Eta Beta Pi" (Eat A Better Pie)

    01001000
    01000101
    01001100
    01010000


    My Own Code - WordCounter

    Useful Forum Links -Reputation - What is it?

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2007
    Posts
    58

    Re: Changing the Password

    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.

  4. #4

    Thread Starter
    Member
    Join Date
    Sep 2007
    Posts
    58

    Re: Changing the Password

    Here is the command
    cmd /c net user {userid} password {password}

  5. #5
    Fanatic Member Lerroy_Jenkins's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    661

    Re: Changing the 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]
    Lerroy

    "η β π", or "Eta Beta Pi" (Eat A Better Pie)

    01001000
    01000101
    01001100
    01010000


    My Own Code - WordCounter

    Useful Forum Links -Reputation - What is it?

  6. #6
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: Changing the Password

    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

  7. #7
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Changing the Password

    why do you want your vb app to change the password of the admin account in the first place?
    My usual boring signature: Something

  8. #8
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Changing the Password

    Quote Originally Posted by NehaRao
    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?
    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width