Change internet profile (wired or wireless) to Private

About

This is to change the internet profile on the computer (wireless or wired) to private.

 

 

Script

 

$netprofile = Get-NetConnectionProfile | Select name

 

Set-NetConnectionProfile -Name $netprofile.name -NetworkCategory Private