If you're using my IniArray UDF, then the IniSections and IniKeys UDFs are redundant - you already have all of the data in the master array that was loaded. By using these extra UDFs, you're losing efficiency by loading the INI file into the array, then enumerating the INI file to locate data that's in your array.
 Code:
$aData = IniArray('.\file.ini')
; List of sections
For $S = 0 to UBound($aData, 2)
 'Section: ' $aData[0, $S] ?
 ; list of keys in the current section
 $aKeyData = $aData[1, $S]        ; put keys array into local var
 For $K = 0 to UBound($aKeyData, 2]
  'Key / Data: ' $aKeyData[0, $K] ' / ' $aKeyData[1, $K]
 Next
Next
This keeps all references in the array. This UDF might be overkill for a simple INI lookup, though.

This UDF was updated just today, so you should pull the latest copy after 10pm EST tonight when it gets uploaded to our web site. The update improves performance for larger files and resoves a recently discovered bug that will appear when a section is defined in the file without any keys associated with it.

You shouldn't have to do all the "UCase" commands as text comparisons are case insensitive unless you use a SetOption call to enable case sensitivity.

It's generally good practice to leave the headers in the UDFs as they contain important reference material.

You should never declare a GLOBAL var inside a function. Doing so will cause the var to be declared each time the function is called causing a Duplicate Definition error.

I haven't reviewed the code in depth, but first blush it seems more complicated than necessary. If your computer name identifies the school and classroom along with a unique PC identifier, then a single config file could be used with one section per location and one key per classroom. If a classroom has multiple computers, then reverse the logic - Printer\share=room instead of room=Printer\Share. Search the values for DATA matching the room and the KEY will represent the printer share. You can then determine which preter was preferred.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D