On my latop, Windows 7 x64 automatically detects when I am at the office and when I am at home and switches the external monitor layout. I also use different ISPs at home then at work (naturally different IP ranges). At home, I also connect to a specific wifi network, while at the office the connection is wired.
Is it possible to automatically switch the keyboard layout to A when I am at home, based on one of the triggers above? In every other situation (office, on the street, etc) I would like to use layout B.
I know it can't be done via command line, but there might be another way to switch it.