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: We just take the Interfaceindex number and run it in the next command) |
||
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 |
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
Nyt ajetaan uudelleen komento
Get-NetConnectionProfile
ja nähdään että Public profiili on muutettu Private profiiliksi.
Lähteet
Mainos / Advertisement: