This can be configured manually in Windows or centrally via Group Policy.
There is an option to automatically connect to the network when in range (even if not broadcasting).
There is also an option to automatically use my windows credentials.
You need to enable these options within the wireless configuration for the relevant SSID (along with other options including authentication etc).
You may want to choose user only or user and computer authentication too.