Skip to content
Home » Blog » Set Network Connection to Private

Set Network Connection to Private

You can use PowerShell command to change network settings from public to private: Run PS as administrater

  1. Get-NetConnectionProfile and press Enter. Information is then shown about the active network connection.
  2. Set-NetConnectionProfile -Name “NetworkName” -NetworkCategory Private. Replace NetworkName with the value of the Name field shared by the previous command.
    To double check that the network location was changed, run the Get-NetConnectionProfile again and see the results. The NetworkCategory field should have a different value.
19724-2.png
  1. You can open sharing options for different network profiles in Control Panel> Network and sharing center> Advanced sharing settings
19742-3.png

Leave a Reply

Your email address will not be published. Required fields are marked *