jueves, 6 de octubre de 2022

PowerShell Network Configuration Commands Cheat Sheet / Chuleta Powershell configuración red

Get-NetAdapter | Select-Object InterfaceAlias , InterfaceIndex

Get-NetIPConfiguration
Remove-netipaddress -interfaceIndex 2
Remove-NetRoute NextHop "192.168.0.1"

Get-NetIPConfiguration

New-NetIPAddress -InterfaceIndex 2 -IPAddress 192.168.0.15 -PrefixLength 24 -DefaultGateway 192.168.0.1


Get-DnsClientServerAddress -InterfaceIndex 2
set-DnsClientServerAddress -InterfaceIndex 2 -ServerAddresses ("8.8.8.8","1.1.1.1")

No hay comentarios:

Publicar un comentario

L2TP Ipsec Windows to Mikrotik eror 789

 Add this to registry REG ADD HKLM\SYSTEM\CurrentControlSet\Services\PolicyAgent /v AssumeUDPEncapsulationContextOnSendRule /t REG_DWORD /d...