Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create users groups on local computer

Status
Not open for further replies.

FrancoAlexc

Programmer
Feb 16, 2005
1
0
0
DK
Hello!
Ihave the create users and users groups on local computer during the installation. Hellllllp:)
 
i would say it cant be done in MSI strictly speaking, this would require a custom action and prob vbscript. post this in the vbscript forum. or have a look at the faq questions in vbscript forum

 
Set location = GetObject("WinNT://server,computer")
Set User1 = location.Create("user", "admin")
User1.SetPassword "something"
User1.SetInfo

Set Group = GetObject("WinNT://server/Administrators,group")
wscript.echo(user1.adspath)
Group.Add(User1.ADspath)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top