I need to create a administrator User Group with my installation (InstallScript methode) on NT-2000-XP.
Thank you...
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Create Aministrator Group
Started by
djq
, Mar 22 2005 15:13
2 replies to this topic
Posted 22 March 2005 - 18:30
Maybe you could use the LogonUser functionality in 10.5? Or maybe this sample helps: "Create and Validate User Accounts" at http://www.installsi...s/en/isp_os.htm
Stefan Krüger
InstallSite.org twitter facebook
Posted 19 April 2005 - 05:19
try the following:
szCmd="net.exe ";
//add a user to your Administrators group
szCmdLine="localgroup \"Administrators\" yourusername /add";
LaunchAppAndWait(szCmd,szCmdLine,LAAW_OPTION_HIDE);
szCmd="net.exe ";
//add a user to your Administrators group
szCmdLine="localgroup \"Administrators\" yourusername /add";
LaunchAppAndWait(szCmd,szCmdLine,LAAW_OPTION_HIDE);
Edited by ifthenelse, 19 April 2005 - 05:23.