Go to Control Panel
click on Hardware and Sound
click on Sound
then you devices should come up ; speakers, Digital Audio, and headphones
plug your headphones in
then select headphones
at the bottom it will say set as default
then when you disconnect your headphones it automatically switches to the speakers and when you plug them back in it automatically will switch to headphones!!