software:microsoft:windows:powershell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:microsoft:windows:powershell [2023/09/30 16:31] – [PowerShell Commands] superwizard | software: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 ====== | ||
- | ====== | + | ====== |
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/ | On Windows 10/11 and Windows Server 2022/ | ||
- | From < | + | |
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 < | From < |
software/microsoft/windows/powershell.1696091480.txt.gz · Last modified: 2023/09/30 16:31 by superwizard