slu

Søren's Blog

Random Ramblings

Previous Entry Share Next Entry
Using winexe to add local users to a Windows server from Linux
slu
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: ,

?

Log in