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:19] – [10 PowerShell cmdlets to speed network troubleshooting] 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 9: | Line 36: | ||
| Get-NetworkStatistics | Format-Table > c: | Get-NetworkStatistics | Format-Table > c: | ||
| + | | ||
| + | Get-NetworkStatistics - netstat -bano with filtering | ||
| + | This code borrows from Shay Levy's Get-NetworkStatistics function | ||
| + | |||
| + | From < | ||
| + | |||
| </ | </ | ||
| Line 28: | Line 61: | ||
| Test-NetConnection " | Test-NetConnection " | ||
| - | Another feature of the Test-NetConnection cmdlet is the ability to test the connectivity between the local | + | Another feature of the Test-NetConnection cmdlet is the ability to test the connectivity |
| + | | ||
| 3. Trace route communications | 3. Trace route communications | ||
software/microsoft/windows/powershell.1598289548.txt.gz · Last modified: by superwizard
