wntUserExist

Determines whether a user exists.

Syntax:

wntUserExist(server-name, user-name [, input-format-flag])

Parameters:

(s) server-name: the UNC name of the server on which the function will execute (eg, "\\MYSERVER"), or a blank string ("") to indicate the current machine.

(s) user-name: the name of a user who may have an account on "server-name".

(i) input-format-flag: [optional] controls how the user-name parameter value is interpreted.
Value
 Meaning
0 (default) user-name of an actual user account name.
1 user-name contains a SID value instead of an actual user account name.

Returns:

(i) @TRUE if the specified user exists, @FALSE otherwise.

Example:
; Load Appropriate Extender
AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')

f=wntUserExist("\\Server1", "jdoe",0) If f == @TRUE    Message("User Exist?","Yes, user exists") Else    Message("User Exist?","No, user does NOT exist") EndIf Exit
See Also:

wntGetUser, wntUserAdd