Mainos / Advertisement:
PowerShell
Siirry navigaatioon
Siirry hakuun
PowerShell is Windows' new command line interface.
Switch network location
Switching network location on Windows 8.X and Windows Server 2012 R2 operating systems is pretty much only successful using PowerShell.
Get-NetConnectionProfile
That command will print your network profile. For instance:
Name: Network InterfaceAlias: Ethernet InterfaceIndex: 3 NetworkCategory: Public IPv4Connectivity: LocalNetwork IPv6Conenctivity: LocalNetwork
We just take the Interfaceindex number and run it in the next command
Set-NetConnectionProfile -InterfaceIndex 3 -NetworkCategory Private
Then we rerun the command
Get-NetConnectionProfile
And we can see that the Public profile has been turned into the Private profile.
Sources
Mainos / Advertisement: