Mainos / Advertisement:

PowerShell

Kohteesta Taisto
Versio hetkellä 24. heinäkuuta 2015 kello 07.59 – tehnyt Frans (keskustelu | muokkaukset) (Ak: Uusi sivu: We just take the Interfaceindex number and run it in the next command)
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

Nyt ajetaan uudelleen komento

 Get-NetConnectionProfile

ja nähdään että Public profiili on muutettu Private profiiliksi.

Lähteet

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

Mainos / Advertisement: