What is the correct syntax of the PowerShell command to set all network connections as private?
For example I currently run the PowerShell command Get-NetConnectionProfile. This command lists my network connection profiles and tells me if they are public, private, or domain authenticated.
Then I run the command Set-NetConnectionProfile -InterfaceIndex 2 -NetworkCategory Private to set Network connection profile 2 to private.
What is the powershell command that I can run that will set all Network Connection profiles to private using a single PowerShell command?
I have tried using wildcards such as the asterisk (*) symbol instead of typing in a number (such as 2) but this doesn't work.
What is the correct syntax of the PowerShell command that will set all network connections to private?