• Contact
  • Homelab
Dimitris Tonias
  • Management
  • Monitoring
  • Cloud
  • Virtualization
  • Networking
  • Productivity
No Result
View All Result
  • Management
  • Monitoring
  • Cloud
  • Virtualization
  • Networking
  • Productivity
No Result
View All Result
Dimitris Tonias
No Result
View All Result

Change network type using PowerShell in Windows Server 2016

Dimitris Tonias by Dimitris Tonias
December 21, 2017 - Updated on April 21, 2024
in Management
Reading Time: 1 min read
A A
2
Share on FacebookShare on Twitter

First, to identify the network type we will use the Get-NetConnectionProfile cmdlet. As you will see in the picture below, NetworkCategory shows the network type for all network adapters.

Get-NetConnectionProfile

Get-NetConnectionProfile

Change network type using PowerShell in Windows Server 2016

How to change the network type using PowerShell

Using the InterfaceAlias ​​or InterfaceIndex of the previous command, you can change the network type for the adapter you want by using the Set-NetConnectionProfile cmdlet.

Set-NetConnectionProfile -InterfaceAlias ​​Ethernet -NetworkCategory Private

Set-NetConnectionProfile -InterfaceAlias ​​Ethernet -NetworkCategory Private

Set-NetConnectionProfile -InterfaceIndex 2 -NetworkCategory Private

Set-NetConnectionProfile -InterfaceIndex 2 -NetworkCategory Private

With the NetworkCategory switch, you can choose between the three: Public, Private, and Domain.

Alternatively, to change the network type for all machine adapters, use the following command.

Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private

Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private

Tags: NetworkPowerShellWindows Server 2016
ShareTweetPin
Previous Post

Add computers to TrustedHosts list using PowerShell

Next Post

Install Remote Server Administration Tools (RSAT) in Windows 10

Related Posts

Approve updates in WSUS 2016
Management

Approve updates in WSUS 2016

Configure Group Policy to deploy updates using WSUS 2016
Management

Configure Group Policy to deploy updates using WSUS 2016

Configure computer groups in WSUS 2016
Management

Configure computer groups in WSUS 2016

The initial configuration of WSUS 2016
Management

The initial configuration of WSUS 2016

Install WSUS in Windows Server 2016
Management

Install WSUS in Windows Server 2016

Error opening Report Viewer on WSUS 2016
Management

Error opening Report Viewer on WSUS 2016

Comments 2

  1. milosz says:
    7 years ago

    thanks

    Reply
  2. Brian Eslinger says:
    6 years ago

    Thank you Dimitris!

    This is exactly what I was looking for!

    Reply

Leave a Reply Cancel reply

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

No Result
View All Result
Zabbix server: More than 75% used in the trends cache
Monitoring

Zabbix server: More than 75% used in the trends cache

In Zabbix, "trends" are a type of data storage representing aggregated historical data. Zabbix monitors and collects a vast amount...

Read moreDetails
Check word count on Google Docs

Check word count on Google Docs

Zabbix server: More than 75% used in the configuration cache

Zabbix server: More than 75% used in the configuration cache

Approve updates in WSUS 2016

Approve updates in WSUS 2016

Configure Group Policy to deploy updates using WSUS 2016

Configure Group Policy to deploy updates using WSUS 2016

Configure computer groups in WSUS 2016

Configure computer groups in WSUS 2016

The initial configuration of WSUS 2016

The initial configuration of WSUS 2016

Get more stuff

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

we respect your privacy and take protecting it seriously

  • Contact
  • Homelab

© 2024 Dimitris Tonias

No Result
View All Result
  • About
  • Contact
  • Free Tools
  • Home
  • Homelab

© 2024 Dimitris Tonias

This website uses cookies. By continuing to use this website you are giving consent to cookies being used.