User Tools

Site Tools


software:microsoft:windows:powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:microsoft:windows:powershell [2023/09/30 16:31] – [PowerShell Commands] superwizardsoftware:microsoft:windows:powershell [2023/09/30 16:32] (current) – [Change Network Location to Public or Private with PowerShell] superwizard
Line 1: Line 1:
 ====== PowerShell Commands ====== ====== PowerShell Commands ======
  
-====== Backup SQL ======+====== Change Network Location to Public or Private with PowerShell ======
  
  
Line 8: Line 8:
 2023-09-30 2023-09-30
  
-Change Network Location to Public or Private with PowerShell+
 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: 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:
  
-From <https://woshub.com/how-to-change-a-network-type-from-public-to-private-in-windows/> +
  
 To change the network for the network adapter with index 8 to Private, run the command: To change the network for the network adapter with index 8 to Private, run the command:
-Set-NetConnectionProfile -InterfaceIndex 8 -NetworkCategory Private+     Set-NetConnectionProfile -InterfaceIndex 8 -NetworkCategory Private
 Check that the network profile has changed: Check that the network profile has changed:
-Get-NetConnectionProfile -InterfaceIndex 8+     Get-NetConnectionProfile -InterfaceIndex 8
  
 From <https://woshub.com/how-to-change-a-network-type-from-public-to-private-in-windows/>  From <https://woshub.com/how-to-change-a-network-type-from-public-to-private-in-windows/> 
software/microsoft/windows/powershell.1696091480.txt.gz · Last modified: 2023/09/30 16:31 by superwizard