Hi Shanee

Thanks again for your great help, as you probably already figured out
I am only a beginner.
I really appreciate your help and are very grateful if you can help me on track.


My question is now.

How do I transfer the variables from Printer.ini file for further use in kix?

In the script you've made for me that finds the BSSID the clients are connected to, must now run through Printer.ini file to find the printers to be mapped in the area of BSSID, the way is to locate the same BSSID in the Printer.ini file and determin which printers to be mapped on the client.

The following parameters are used:

BSSID to determine whether the client is near the printer to be allocated.

Group for investigate whether the user is a member or not and if true then map the printer, otherwise not, and it can be that a student do
not have access to a printer which has the same BSSID for the area!

The printer share for mappings (AddPrinterConnection)

The printer name to displayed to the user during mapping.

If there is only one printer then it must be set as default,
if there are more in the same area the the last one must be set as default or perhaps determine this in the Printer.ini file!?


ex Printer.ini

[00:1B:3F:8E:CD:21]
Location = Preparation
Name = HP LaserJet 5550
Share = Laserjet1
Group = Students
Default = HP LaserJet 5550

[00:1B:3F:8E:CD:21]
Location = Preparation
Name = HP LaserJet M4730
Share = Laserjet1
Group = Teacher
Default = HP LaserJet M4730

[00:16:B9:52:AF:BF]
Location = Cellular
Name = HP LaserJet 1320
Share = Laserjet7
Group = Teacher
Default = HP LaserJet 5550

[00:16:B9:52:AF:BF]
Location = Cellular
Share = Laserjet8
Group = Group6

etc. ..


I hope there are someone who can help me, from the modest kix beginner.


Kind regards
roundup