My desktop PC has a working wireless connection. However, when I hibernate and then boot back into Windows 7 the connection is left in a broken state. I don't care about identifying the cause of this as I can always fix it by manually disconnecting and connecting again to my wireless network.
My question is - what is the easiest way for me to automate this disconnect/reconnect step so that it happens every time I boot up/log in? Ideally I would want to have a login script which slept for 30 seconds, detected the state of the wireless connection, and if it wasnt in the connected state the connection is disconnected and then connected.