Mainos / Advertisement:

Ero sivun ”PowerShell/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: PowerShell is Windows' new command line interface.)
(Ak: Uusi sivu: == Sources ==)
 
(6 välissä olevaa versiota samalta käyttäjältä ei näytetä)
Rivi 2: Rivi 2:
 
PowerShell is Windows' new command line interface.
 
PowerShell is Windows' new command line interface.
  
== Vaihda verkkosijaintia ==
+
== Switch network location ==
  
Verkkosijainnin vaihtaminen Windows 8.X ja Windows Server 2012 R2 käyttöjärjestelmiin onnistuu pääosin vain PowerShellin avulla.
+
Switching network location on Windows 8.X and Windows Server 2012 R2 operating systems is pretty much only successful using PowerShell.
  
 
   Get-NetConnectionProfile
 
   Get-NetConnectionProfile
  
Tulostaa verkkoprofiilisi. Esimerkiksi:
+
That command will print your network profile. For instance:
  
 
   Name: Network
 
   Name: Network
Rivi 17: Rivi 17:
 
   IPv6Conenctivity: LocalNetwork
 
   IPv6Conenctivity: LocalNetwork
  
Otetaan vain InterfaceIndex numero ja ajetaan se seuraavassa komennossa
+
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
  
Nyt ajetaan uudelleen komento
+
Then we rerun the command
  
 
   Get-NetConnectionProfile
 
   Get-NetConnectionProfile
  
ja nähdään että Public profiili on muutettu Private profiiliksi.
+
And we can see that the Public profile has been turned into the Private profile.
  
== Lähteet ==
+
== 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

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: