vista command line connect to a wireless network
netsh wlan /? //shows the options
netsh wlan export profile name="example-network" //creates an xml of an active profile
you may have to import your profile through the add command but in this case I just want to connect to a profile I know will always exist on my machine
netsh wlan connect name="example-network" ssid="example network"