Well the purpose of the script is to check that the ssid has been configured for that laptop, if not, add it. Otherwise if a laptop were to have the wireless nic disabled via the switch at the front and plugged into ethernet, my script so far would not detect the SSID has been configured (if it has been) and would try and install the ssid again.