WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Microsoft Client
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:03:01:13:55:24
Last Updated: 2001:03:01:13:55:24