This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Installscript to add an user to a group
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2009
11:23 AM
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.
I am using a Basic MSI project.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2009
10:47 PM
You can find the acresso KB article Here which is related to user creation using install script.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 11, 2009
08:53 AM
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
--------------------------------------------------------------------------
szProgram = "net.exe";
szDomainName="testdomain";
szUserName ="testuser";
szCmdline=" localgroup IIS_WPG " +szDomainName+"\\"+szUserName +" /add";
LaunchAppAndWait(szProgram,szCmdline,LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);
--------------------------------------------------------------------------
-Mrunmayee
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)