7
Is there a way to switch between Home, Public, and Work modes from the command line?
7
Is there a way to switch between Home, Public, and Work modes from the command line?
2
It doesn't appear to be possible from the "regular" command line (unless the netsh command does what you need, see Nixphoe's answer), but if you on't mind using PowerShell for what ever it is you're doing then you can have a look at this blog post on MSDN.
Basically, Vista had a COM based api which you could use PowerShell to interact with. I assume it is still there in Win7. The blog post includes a sample script.
2The dumped settings don't seem to have any mention of network type setting, am I missing something? – Acorn – 2011-07-15T11:47:27.647