IBM OS/2 LAN Server REXX Utility DLL


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


NETGROUPUSERS Set Info


The function sets the user accounts belonging to a group.   
Syntax 


MyRc = NetSetInfo(NETGROUPUSERS, 'groupInfo', SrvName, GroupName)

  
Parameters 
The parameters required are: 
'groupInfo'       The REXX variable describing the userids belonging to a 
                  group 
   o groupInfo.count 
     The number of the user accounts 
   o groupInfo.i.userid 
     The user account name entry i 
SrvName           The computer name of the domain controller 
GroupName         The name of the group 
  
Note 
The server computer name can be specified as '' for a local domain 
controller.   
Example   


/* Set user accounts into a group */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETGROUPUSERS = 340
SrvName  = '\\DOMAIN_CONTRLR'
groupName= 'GROUPA'

groupInfo.count = 3
groupInfo.1.userid = 'USERID'
groupInfo.2.userid = 'ADMINISTRATOR'
groupInfo.3.userid = 'THE2'

myRc = NetSetInfo(NETGROUPUSERS, 'groupInfo', SrvName, groupName)

if myRc <> '0' then do
 say 'Got error from NetSetInfo() ' myRc
 exitRc = 9
end
else do
 say 'User accounts successfully added to group'
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit exitRc

  
Example Output   


User accounts successfully added to group



Inf-HTML End Run - Successful