# very first line of this recovery method is a last ditch effort and if it fails nothing else will work. # if this works then it was thought of by travis, if not then I found it somewhere else. psexec.exe \\SERVERNAME -s powershell Enable-PSRemoting -Force # use ps-remoting to add a static route to one of the network adapters specified as the last argument Invoke-Command -ComputerName SERVERNAME -ScriptBlock {route add -p 0.0.0.0 255.255.255.0 10.0.0.1} c:\>netsh int ipv4 show address "Ethernet" Configuration for interface "Ethernet" DHCP enabled: No IP Address: 10.0.1.90 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.92 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.91 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) Default Gateway: 10.0.1.1 Gateway Metric: 256 InterfaceMetric: 10 c:\>netsh interface ipv4 add address "Ethernet" 10.0.1.93 255.255.255.0 c:\>netsh int ipv4 show address "Ethernet" Configuration for interface "Ethernet" DHCP enabled: No IP Address: 10.0.1.90 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.92 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.91 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) Default Gateway: 10.0.1.1 Gateway Metric: 256 InterfaceMetric: 10 c:\>netsh int ipv4 show address "Ethernet" Configuration for interface "Ethernet" DHCP enabled: No IP Address: 10.0.1.90 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.92 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.93 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.91 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) Default Gateway: 10.0.1.1 Gateway Metric: 256 InterfaceMetric: 10 c:\>netsh int ipv4 show address "Ethernet" Configuration for interface "Ethernet" DHCP enabled: No IP Address: 10.0.1.90 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.92 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.93 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.91 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) Default Gateway: 10.0.1.1 Gateway Metric: 256 InterfaceMetric: 10 c:\>netsh interface ipv4 add address "Ethernet" 10.0.1.200 255.255.255.0 c:\>netsh int ipv4 show address "Ethernet" Configuration for interface "Ethernet" DHCP enabled: No IP Address: 10.0.1.90 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.92 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.93 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.200 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) IP Address: 10.0.1.91 Subnet Prefix: 10.0.1.0/24 (mask 255.255.255.0) Default Gateway: 10.0.1.1 Gateway Metric: 256 InterfaceMetric: 10 c:\>netsh interface ipv4 delete address "Ethernet" 10.0.1.93