Sets RAS information for a user.
wntRasUserSet ( server-name,:user-name, privilege, phone-number [, input-format-flag])
(s) server-name: is the UNC name of the primary or backup domain controller that has the user account database (eg, "\\MYSERVER"). If the machine on which the user account resides is a standalone NT workstation or server, you can specify the UNC name of that machine, or "" for the local computer.
(s) user-name: is the name of a user.
(i) request: specifies the information to be returned. See below.
(i) privilege: see below.
(s) phone-number: specifies an administrator-preset callback phone number, if appropriate. You can specify a blank string ("") to leave the currently-set number (if any) unchanged.
(i) input-format-flag: [optional] controls how the user-name parameter value is interpreted.
Value Meaning
0 (default) user-name is actual user acount name
1 user-name contains a SID value instead of an actual user account name.
(i) Returns 1.
"Privilege"
Value |
Meaning |
1 |
No dial-in permission / No callback privilege |
2 |
No dial-in permission / Callback number preset by administratorr |
4 |
No dial-in permission / Callback number specified by caller |
9 |
Dial-in permission / No callback privilege |
10 |
Dial-in permission / Callback number preset by administrator |
12 |
Dial-in permission / Callback number specified |
Note: wntRasUserGet and wntRasUserSet require RASSAPI.DLL.
; Load Appropriate Extender AddExtender('wwwnt34i.dll',0,'wwwnt64i.dll')
flags=wntRasUserGet("\\SERV","user1",1,0) Message("RASFlags on User1", flags)
wntRasUserSet("\\SERV","user1","9","",0) flags=wntRasUserGet("\\SERV","user1",1,0) Message("RASFlags on User1", flags) Exit