You could do
Set-NetConnectionProfile -InterfaceAlias myEthernet -NetworkCategory "Private"
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am doing a system deployment where it consists of a few windows machines that form a local network and exchange data between each machine. It is a requirement from the software vendor that these windows machines must be running in Private network profile in order to get the system works without issues.
The local area network is then linked to a router for an internet connection.
My problem is every time I provision the setup in my staging lab when I move it to the client side during the actual installation date, the network profile seems to change to Public automatically once it is connected to the client side network.
Please take note that the network name is not pre-specified for the client-side router, thus I am not able to simply pre-set the network profile in the Windows registry.
Even though it can be manually switching to Private network profile, I would like to know does anyone how can we fix all the future upcoming network profiles to stay Private no matter which network it connects to.
You could do
Set-NetConnectionProfile -InterfaceAlias myEthernet -NetworkCategory "Private"
--please don't forget to upvote
and Accept as answer
if the reply is helpful--