How to Set up a User Account with "Grant Dial-In Permissions" Set
Keywords: wntRasUserGet wntRasUserSet RAS
Question:
I created a test account called 'user1' in the NT user database with none of the 'flag' options checked, and
without 'Grant dialin permission' selected. Then I ran the following:
AddExtender("WWWNT34I.DLL")
flags=wntUserGetDat("\\SERV","user1","flags")
Message("Flags on user1", flags)
I received '513' as a result. But when I went and checked off 'Grant dialin permission' and ran it again, I
still got '513'. Any ideas?
Answer:
For the RAS stuff, we have a new function in the 98C version of Winbatch called
wntRasUserGet and wntRasUserSet,as follows:
AddExtender("WWWNT34I.DLL")
flags=wntRasUserGet(\\SERV,"user1",1)
Message("RASFlags on User1", flags)
wntRasUserSet(server,"user1","9","")
flags=wntRasUserGet(\\SERV,"user1",1)
Message("RASFlags on User1", flags)
Article ID: W13553
Filename: Set up User with Grant DialIn Permissions Set.txt