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 [2020/08/24 17:36] – [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 ====== | ||
+ | |||
+ | ====== Change Network Location to Public or Private with PowerShell ====== | ||
+ | |||
+ | |||
+ | <WRAP center round box > | ||
+ | |||
+ | 2023-09-30 | ||
+ | |||
+ | |||
+ | On Windows 10/11 and Windows Server 2022/ | ||
+ | |||
+ | |||
+ | |||
+ | To change the network for the network adapter with index 8 to Private, run the command: | ||
+ | | ||
+ | Check that the network profile has changed: | ||
+ | | ||
+ | |||
+ | From < | ||
+ | |||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Backup SQL ====== | ||
+ | |||
<WRAP center round box > | <WRAP center round box > | ||
Line 10: | Line 37: | ||
Get-NetworkStatistics | Format-Table > c: | Get-NetworkStatistics | Format-Table > c: | ||
| | ||
- | Get-NetworkStatistics - netstat -ano with filtering | + | Get-NetworkStatistics - netstat -bano with filtering |
This code borrows from Shay Levy's Get-NetworkStatistics function | This code borrows from Shay Levy's Get-NetworkStatistics function | ||
software/microsoft/windows/powershell.1598290592.txt.gz · Last modified: 2020/08/24 17:36 by superwizard