---
title: Manually change Windows 10 network type from Public to Private using PowerShell   
description: "1. Go to the start menu and type Windows Powershell in the Search line ![](http://gpratepro.com/wp-content/uploads/2018/09/126-283x300.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/66.jpg) 2. Right click on Windows PowerShell ISE on the results and select Run as administrator. ![](http://gpratepro.com/wp-content/uploads/2018/09/226-281x300.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/67.jpg) 3. The User Account Control prompt will ask you for your…"
url: "https://gpratepro.com/docs/how-to-change-the-windows-10-network-type-from-public-to-private-using-powershell/"
updated: "2018-09-26"
category: Technical Issues
---

# Manually change Windows 10 network type from Public to Private using PowerShell   

1. Go to the start menu and type Windows Powershell in the Search line

![](http://gpratepro.com/wp-content/uploads/2018/09/126-283x300.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/66.jpg)

2. Right click on Windows PowerShell ISE on the results and select Run as administrator.

![](http://gpratepro.com/wp-content/uploads/2018/09/226-281x300.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/67.jpg)

3. The User Account Control prompt will ask you for your consent. Click Yes.

![](http://gpratepro.com/wp-content/uploads/2018/09/626-300x209.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/68.jpg)

The elevated PowerShell prompt will open.

![](http://gpratepro.com/wp-content/uploads/2018/09/326-300x175.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/69.jpg)

4. Using PowerShell, view network profile used by your network adapters: on the Start screen, at the end of command line type  **Get-NetConnectionProfile **and press Enter key.

![](http://gpratepro.com/wp-content/uploads/2018/09/1226-300x158.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/70.jpg)

5. Check NetworkCategory. It should be Public.

![](http://gpratepro.com/wp-content/uploads/2018/09/1526-300x143.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/71.jpg)

6. Find the InterfaceIndex number that must be used.

![](http://gpratepro.com/wp-content/uploads/2018/09/2026-300x143.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/72.jpg)

7. In the command line that appeared use command:

**Set-NetConnectionProfile -InterfaceIndex <index number> -NetworkCategory Private**

For example, the command line should look like:

PS C:> Set-NetConnectionProfile -InterfaceIndex 5 -NetworkCategory Private

![](http://gpratepro.com/wp-content/uploads/2018/09/4026-300x158.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/75.jpg)

8. Press Enter. Your network type has been changed from public to private.

![](http://gpratepro.com/wp-content/uploads/2018/09/6026-300x159.jpg)![](http://gpratepro.com/wp-content/uploads/2018/09/76.jpg)

 

 

 
