wolkenloser Posted July 2, 2007 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
ksmith247 Posted July 2, 2007 Posted July 2, 2007 wolkenloser said: 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]
wolkenloser Posted July 2, 2007 Author Posted July 2, 2007 ksmith247 said: 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
wolkenloser Posted July 2, 2007 Author Posted July 2, 2007 wolkenloser said: 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
FreeFry Posted July 2, 2007 Posted July 2, 2007 (edited) wolkenloser said: 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
wolkenloser Posted July 4, 2007 Author Posted July 4, 2007 FreeFry said: 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
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