Link to home
Start Free TrialLog in
Avatar of Andreas Gieryic
Andreas GieryicFlag for United States of America

asked on

Can"t change "Windows Server 2016" network from Public to Private

I support several Windows Server 2016 servers and not running into this issue
- At first, I thought we had a router issue. The router has been upgraded to a newer Cisco model (originally we were using a "Netgear Prosafe router")
- The server is not in a domain. There are approximately eight computers in a peer-to-peer network at this time. The computers cannot map a drive to the server until we physically change it from public to private. Then it connects. But on the server, I cannot change it to private.
- When the server is rebooted, all users lose connection to their map drives until we go back and change the PC from public to private (or work on older Windows 7 PCs)
ASKER CERTIFIED SOLUTION
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
powershell
Get-NetConnectionProfile

Open in new window


i.e. powershell as admin
Get-NetConnectionProfile                                                    

Name             : Network
InterfaceAlias   : vEthernet (External)
InterfaceIndex   : 5
NetworkCategory  : Private
IPv4Connectivity : Internet
IPv6Connectivity : Internet

Name             : Unidentified network
InterfaceAlias   : vEthernet (DockerNAT)
InterfaceIndex   : 4
NetworkCategory  : Public
IPv4Connectivity : NoTraffic
IPv6Connectivity : NoTraffic

set-netconnectionprofile -interfaceindex 4 -networkcategory private

Open in new window

Avatar of Andreas Gieryic

ASKER

Pete, that worked
David, thanks for the additional input
No problem, I'll shamelessly steal an article out of it....

Network Profile Switches from ‘Private’ to ‘Public’


</P>