Windows 7 Set Network Location via Command Line


New Member
May 15, 2013
Win7Pro Only

I'm looking for a scripted solution, or a command line that I can ultimately script. The reason being that I'm supporting 1200 users in remote locations, and I automate as much as I can in batch and VB scripts. I'm not intimately familiar with PowerShell, but I'm not opposed to it. I don't want to have to install updated versions of PowerShell on every PC I encounter, I just want to use what comes with Win7 SP1 natively. Hopefully this isn't a pipedream. :tongue:

I need to accomplish the following:
1. Set the network location to Work on all adapters.
2. Set the default location for a new connection to Work.

I've found some NETSH commands to tweak current profiles, but I haven't found anything to change the profile at large. I need it to be set to Work, not Home, not Public.

Any thoughts or suggestions would be greatly appreciated. :)
Top Bottom