If you’re fighting with Network Level Authentication (see this post) and need to quickly change a workstation from Public to Private, this should work in PowerShell:
Get-NetConnectionProfile
Note the InterfaceIndex of the adapter you want to change, e.g. 13.
Set-NetConnectionProfile -InterfaceIndex 13 -NetworkCategory Private
Credit to this post.