Lists users currently logged into a server.
wntCurrUsers( server-name, flags)
(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) flags: specifies the format of the returned names (see below).
(s) a tab-delimited list of users currently logged into a server.
"flags" specifies the format of the returned names, and can be one of the following:
Flags |
Meaning |
0 |
account (eg, "johndoe") |
1 |
domain\account (eg, "OFFICE\johndoe") |
; Load Appropriate Extender AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')
old=AskPassword("Change Password","Enter old password") While @TRUE new1=AskPassword("Change Password","Enter new password") new2=AskPassword("Change Password","Enter new password again") If new1==new2 Then Break Message("Try Again","The new passwords you entered do not match") EndWhile rslt=wntChgPswd("", "", old, new1) If rslt Message("Password","Successfully changed") Else Message("Password","Not changed") EndIf Exit
wntUserExist, wntUserAdd, wntUserDel