cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Matronix
Level 6

Installscript to add an user to a group

During my install I need to add an user to the IIS_WPG group on a 2003 machine. Anyone know if that is possible to do in an installscript?

I am using a Basic MSI project.
Labels (1)
0 Kudos
2 Replies
ChandanOmkar
Level 8

You can find the acresso KB article Here which is related to user creation using install script.
0 Kudos
Mrunmayee
Level 5

Here is the sample code to add user to group :

--------------------------------------------------------------------------
szProgram = "net.exe";
szDomainName="testdomain";
szUserName ="testuser";
szCmdline=" localgroup IIS_WPG " +szDomainName+"\\"+szUserName +" /add";
LaunchAppAndWait(szProgram,szCmdline,LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);

--------------------------------------------------------------------------
-Mrunmayee
0 Kudos