Is there any way to manage the user accounts for any Windows operating system installed on my hard disk from Linux?
I.e: by booting some live distro and making all desired changes.

The more useful changes I can think of are:

  • Adding privileged (admin) user accounts.
  • Changing passwords.

Some more capabilities (like user deletion, privileges modification or groups management) are, also, welcome.

Answers desired for every Windows version.
If specific, modern versions (Windows 10, as for today, Aug 2018) preferred.

closed as off-topic by Kusalananda, Jaroslav Kucera, Rui F Ribeiro, schily, Thomas Aug 8 '18 at 9:43

  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 6
    I'm voting to close this question as off-topic because it is primarily about performing admin tasks on a Windows system (albeit from Linux). – Kusalananda Aug 8 '18 at 8:48
  • Make Windows use an LDAP server, manage LDAP from Linux? Of course you won't be able to manage local Windows accounts. And setting up the LDAP server may prove ... interesting. – dirkt Aug 8 '18 at 9:10
  • 1
    The tool what you are looking for is chntpw, available in all mainstream distros. – peterh Aug 8 '18 at 14:09
  • 1
    @Jesse_b chntpw, with a minimal wizardry can be even used from ubuntu live cd-s. – peterh Aug 8 '18 at 14:11
  • 1
    @peterh I'm more than happy for the question to be reopened, no worries. Especially if it's been closed erroneously. – Kusalananda Aug 8 '18 at 14:20

I don't believe there are any tools to manage local Windows user accounts in a Windows disk image, other than the one that resets the local administrator account. (I'm being vague there because I can't remember its name.)

If you have a running Windows image and if domain joined then I understand that SAMBA provides tools for domain user management. (I haven't used them, though, as it's easier in a mixed environment to use the native Windows tools.)


You seem to have a dual-boot setup on your computer, your best bet might be using ntpasswd (http://www.pogostick.net/~pnh/ntpasswd/).

If you mean to manage your active directory environment from your linux system, you can try adtool (https://gp2x.org/adtool/), or see if powershell would help you here (https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux?view=powershell-6)

Not the answer you're looking for? Browse other questions tagged or ask your own question.