Wednesday, September 11, 2024

Windows 10/11 - Change Network Profile From Public to Private Using Powershell

 


Problem:

Cannot change the network connection profile from public to private from the GUI because the option does not exist in certain scenarios.



Solution:

1. Open PowerShell as Admin

2. Get-NetConnectionProfile to show all available network profiles (only shows enabled adapters).

3. Identify the Name of the network profile you wish to change.

4. Set-NetConnectionProfile -Name "nameofnetworkprofile" -NetworkCategory Private

5. or

6. Set-NetConnectionProfile -Name "nameofnetworkprofile" -NetworkCategory Public

7. Done




๐Ÿ‘ฝ

Enterprise Infrastructure & Security Support

Need assistance hardening your network perimeter, orchestrating Hyper-V clusters, deploying SentinelOne EDR, or configuring multi-tenant Microsoft 365 environments? Pat's IT Solutions, LLC provides enterprise-grade co-managed IT, 24/7/365 monitoring, and weekend SLAs for commercial organizations across New Jersey.

Schedule an Infrastructure Audit → Phone: Reveal Direct Line

No comments: