Change Network Adapter to Private via PowerShell

Created by Jonathan Joles, Modified on Mon, Nov 6, 2023 at 3:46 PM by Jonathan Joles

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


For example:


PS C:\> Get-NetConnectionProfile


Name : savilltech.net

InterfaceAlias : Internal

InterfaceIndex : 12

NetworkCategory : DomainAuthenticated

IPv4Connectivity : LocalNetwork

IPv6Connectivity : LocalNetwork


Name : Network

InterfaceAlias : Internet

InterfaceIndex : 13

NetworkCategory : Public

IPv4Connectivity : LocalNetwork

IPv6Connectivity : LocalNetwork


PS C:\> Set-NetConnectionProfile -InterfaceIndex 13 -NetworkCategory Private

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article