Change Network Category (aka public or private network) on Windows 8 and Server 2012

I installed Server 2012 on a VM and couldnt get the network location profile to change to Private from Public.  I tried everything I could find on the net, then I figured out how to do it with powershell.  I will walk you through it, its very easy and painless.

Open up powershell and type in:


What we are looking for is the InterfaceIndex entry. It should be a number. In my case it was 12. You will also see what the current Network Category is. So assuming we want to change the category to private, then we are going to type in:

Set-NetConnectionProfile -InterfaceIndex 12 -NetworkCategory Private

Running Get-NetConnectionProfile or opening up the Network Center will show you as Private network now. Why they didnt make it a click box to change your profile is crazy, but at least its easy to change.

Filed under: Uncategorized | Posted on September 10th, 2012 by CharlieMaurice

Leave a Reply

RSS Feed





Copyright © 2023 Charlie's Tech Ramblings. All rights reserved.

Tech Blue designed by Hive Designs • Ported by Free WordPress Themes