====== Windows Server 2019 ====== ------------------------------------------------------------------------------------------------------------------------------------------------\\ ====== Change Network Location to Public or Private with PowerShell ====== 2023-09-30 On Windows 10/11 and Windows Server 2022/2019/2016, you can manage network connection locations from PowerShell. Open the elevated PowerShell console. List Windows network interfaces and the network profiles applied to them: To change the network for the network adapter with index 8 to Private, run the command: Set-NetConnectionProfile -InterfaceIndex 8 -NetworkCategory Private Check that the network profile has changed: Get-NetConnectionProfile -InterfaceIndex 8 From