On my Windows 10, I found the network is set to Public network. That means you can’t share anything to/from other computers. When you connect to a new network, Windows gives you an option to share files with another computer on the network. If you check that box, the network is flagged as Private. If you missed it, the network is flagged as Public. It looks like this:
I tried to change that network back to the Private network. For some reason, Windows 10 didn’t give me any to option to change the network type anywhere in GUI settings.
But I found how to do it in PowerShell. If you want to change the network type, open the PowerShell with Administrative Privileges (Right click on PowerShell, Run as Administrator) and run these commands:
Run this command and note down “InterfaceAlias” of the network you want to change.
Store the Network connection profile of the network to a variable (enter the interface alias you noted down from the previous command) :
$netprofile = Get-NetConnectionProfile -InterfaceAlias <Interface Alias name>
Change the Network Category to “Private” or “Public” in the object stored in $netprofile:
$netprofile.NetworkCategory = "Private"
Set the network profile with the modified object:
Set-NetConnectionProfile -InputObject $netprofile
You can close the PowerShell now. Check your network, it should be changed now.