software:microsoft:windows:powershell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
software:microsoft:windows:powershell [2023/09/30 16:31] – [Backup SQL] superwizard | software:microsoft:windows:powershell [2023/09/30 16:32] (current) – [Change Network Location to Public or Private with PowerShell] superwizard | ||
---|---|---|---|
Line 11: | Line 11: | ||
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.1696091496.txt.gz · Last modified: 2023/09/30 16:31 by superwizard