Søren Lund (slu) wrote,
Søren Lund

Using winexe to add local users to a Windows server from Linux

If you're like me, and likes working from the command line on linux, but still have to administer Windows servers, you will like winexe. It's a small command line utility that remotely executes commands on a Windows system.

For example, to list alle the user in the Administrators group on the machine called myserver issue the following:

$ winexe -U DOMAIN/username //myserver "net localgroup Administrators"

You will be prompted for your password.

You can add a user using:

$ winexe -U DOMAIN/username //myserver "net localgroup Administrators anotheruser /add"
Tags: linux, windows

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded