Mainos / Advertisement:

PowerShell

Kohteesta Taisto
Versio hetkellä 24. heinäkuuta 2015 kello 07.59 – tehnyt Frans (keskustelu | muokkaukset) (Ak: Uusi sivu: == Sources ==)
(ero) ← Vanhempi versio | Nykyinen versio (ero) | Uudempi versio → (ero)
Siirry navigaatioon Siirry hakuun
Muut kielet:
English • ‎suomi

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

http://blogs.msmvps.com/russel/2013/12/29/set-network-location-to-private-in-windows-8-1server-2012-r2/

Mainos / Advertisement: