Mainos / Advertisement:
Ero sivun ”PowerShell/en” versioiden välillä
Siirry navigaatioon
Siirry hakuun
(Ak: Uusi sivu: That command will print your network profile. For instance:) |
(Ak: Uusi sivu: == Sources ==) |
||
(3 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
Rivi 17: | Rivi 17: | ||
IPv6Conenctivity: LocalNetwork | IPv6Conenctivity: LocalNetwork | ||
− | + | We just take the Interfaceindex number and run it in the next command | |
Set-NetConnectionProfile -InterfaceIndex 3 -NetworkCategory Private | Set-NetConnectionProfile -InterfaceIndex 3 -NetworkCategory Private | ||
− | + | Then we rerun the command | |
Get-NetConnectionProfile | Get-NetConnectionProfile | ||
− | + | And we can see that the Public profile has been turned into the Private profile. | |
− | == | + | == Sources == |
http://blogs.msmvps.com/russel/2013/12/29/set-network-location-to-private-in-windows-8-1server-2012-r2/ | http://blogs.msmvps.com/russel/2013/12/29/set-network-location-to-private-in-windows-8-1server-2012-r2/ |
Nykyinen versio 24. heinäkuuta 2015 kello 07.59
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: