Changing a local account password at Windows 2003 command prompt

Posted on 2011-04-29
Last Modified: 2012-05-11

From my Linux server, I could ssh into a remote Win 2003 server (but
not Remote Desktop or VNC to it).

I'm required to login remotely to change the password of a local
Windows account on that Win 2003 server.  Is there any way to
do this?

Let me know if there's any freeware or tool that could be installed
if WIn 2003 doesn't support this
Question by:sunhux

    Author Comment


    I forgot to mention I don't have administrator access & the account which I
    have access is only a common account used for ftp.  If I have direct access
    to the remote Windows server, login in & press Ctrl-Alt-Del would allow a
    non-admin user to change his own password.  My problem is how can I
    achieve this without administrator privilege.

    With admin privilege, google returns various links but they're not what I wanted:

    Author Comment


    I guess the command wont work
    net user my_nonprivileged_account  new_password
    LVL 82

    Accepted Solution

    A non-administrator can not reset another local user's password, remotely or locally, full stop (it could work locally with Power User privileges).
    Resetting another user's password can not be delegated to another user in a workgroup/local user setup, this is only possible for doimain accounts.
    Anyway, when logged on locally (or to a telnet or whatever console), an Administrator (or Power User) can use
    net user SomeUser *
    to set the password.
    Remotely, a tool like PsPasswd should do the trick (yes, administrative permissions are required ...).

    Author Comment


    I did not forget my Windows non-privileged login password, so can't I
    change my own login id's password?  

    In Linux/UNIX, I can issue "passwd my_own_id" to change my id's
    password even if my id doesn't have admin priv, so I'm looking for
    an equivalent in Windows command line.  Is there any or I'm asking
    for something that does not exist?

    Author Comment


    I don't need to reset another local user's password, it's my
    own login id's password that I need to change every 90 days
    LVL 76

    Assisted Solution

    net user yourlocalusername *
    You will get a prompt for a password and then to retype.

    Expert Comment

    Can you explain this issue better so I can help you.
    LVL 76

    Assisted Solution

    did not pay too much attention to "the 90 day", you can modify the local security policy to expire the password which is usually 42 days and can be changed. you would however have to make sure that the account does not have password never expires selected and password can not be changed.
    net user <yourlocalusername>
    To see the current settings on your account.
    To remove the password expires: never use

    using WMI to manipulate the password expiration setting: Administrative rights might be needed/required

    Author Comment


    I guess the solution basically evolves around using the command :
      net user yourlocalusername *

    Looks like I have to negotiate with that remote organization (that
    owns the Win 2003 ssh server) to grant my local login id on their
    Win 2003 server "Power Users" or "Administrator" privilege.

    That organization is military-related, so it's going to be an uphill
    task: they have hardened their Win2003 box to the extent that
    Remote Desktop/VNC services are not allowed
    LVL 8

    Assisted Solution

    if you want to change your own user password from windows command line .below is the comand
    net user username new_password

    Open in new window

    Not sure if it will word on a "user" (Non admin) or not.try it ..

    Author Closing Comment


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
    Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now