Changing Network Profile

How to change network from Public to Private

In PowerShell “Run as Administrator”

> Get-NetConnectionProfile
> Set-NetConnectionProfile -Name NetworkName -NetworkCategory Private