wolkenloser Posted July 2, 2007 Share Posted July 2, 2007 Hi all, It should create an Windowsaccount on a XP and take it to a prefixt group. First I try it with a batch file like this: "net user test test /ADD" this is simple and its working well. But there is no way to add the test User into a localgroup e.g. Administartors oder Mainusers... Has someone an Idea fpr me to do this simple with autoit ? regards Wolke Link to comment Share on other sites More sharing options...
ksmith247 Posted July 2, 2007 Share Posted July 2, 2007 But there is no way to add the test User into a localgroup e.g. Administartors oder Mainusers...Try net localgroup accounts add/? from command prompt Support bacteria; it's the only culture most people have.LxP's Learning to Script with AutoIt 3 - Excellent starting placeVolly's Links Page - Links to cool and useful scriptsAutoIt Wrappers - Valuater's AutoIt Wrappers post. Lots of good stuff.Support AutoIt - Make a donation here; I did.[size="2"]#include <Guinness.pint>[/size] Link to comment Share on other sites More sharing options...
wolkenloser Posted July 2, 2007 Author Share Posted July 2, 2007 Try net localgroup accounts add/? from command promptOk, so I can add a Group, but I want to add a member to an existing group Link to comment Share on other sites More sharing options...
wolkenloser Posted July 2, 2007 Author Share Posted July 2, 2007 Ok, so I can add a Group, but I want to add a member to an existing groupHi,I found a Tool named addgrpmem.exe.It works :-)Thanks,Wolke Link to comment Share on other sites More sharing options...
FreeFry Posted July 2, 2007 Share Posted July 2, 2007 (edited) Ok, so I can add a Group, but I want to add a member to an existing group That's exactly what the net localgroup command does... net localgroup <group> <user> /add <group> would be the group you want to add <user> to. for example, adding a user called Test, and then adding him to the group Administrators(assuming you're using an English version of windows): net user Test /add net localgroup Administrators Test /add Edited July 2, 2007 by FreeFry Link to comment Share on other sites More sharing options...
wolkenloser Posted July 4, 2007 Author Share Posted July 4, 2007 That's exactly what the net localgroup command does... net localgroup <group> <user> /add <group> would be the group you want to add <user> to. for example, adding a user called Test, and then adding him to the group Administrators(assuming you're using an English version of windows): net user Test /add net localgroup Administrators Test /addThanks, it works. I don´t understand the helpfile of NET LOCALGROUP greetings Wolke Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now