IBM OS/2 LAN Server REXX Utility DLL


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


NETUSERPASSWORD Set Info


The function changes a user account password.   
Syntax 

MyRc = NetSetInfo(NETUSERPASSWORD, SrvName, UserId, OldPw, NewPw)

  
Parameters 
The parameters specified are: 
SrvName           The server computer name 
UserId            The name of the userid to change to password on 
OldPw             The old password 
NewPw             The new password 
  
Note 
The server computer name can be specified as '' for a local domain 
controller.   
Example   

/* Change a userid password */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETUSERPASSWORD = 260
SrvName         = '\\ILIDC'
UserId          = 'WS12345'
OldPw           = 'PASSWORD'
NewPw           = 'NEWPASS'

myRc = NetSetInfo(NETUSERPASSWORD, SrvName, UserId, OldPw, NewPw)

if myRc <> '0' then do
 say 'Got error from NetSetInfo() ' myRc
 call DropLsRxutFuncs
 exit 9
end
else do
 say 'Changed Password successfully'
 say
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   

Changed Password successfully



Inf-HTML End Run - Successful