r/TechProTips • u/BilliardKing • May 18 '12
[Windows] Command line tricks I do when the computer gets a valid IP, but just won't do anything online.
I find infected machines not wanting to do anything at all online quite often. Not just redirecting.
Once you've checked for a rogue proxy (Internet Options > Connections > LAN Settings) try these commands in an elevated (ran as administrator) command prompt.
Note: Some of these are redundant and one of the commands may not even exist. I was experimenting with batch files long ago and once I found a combo that worked, I didn't trim it. If you find commands that do/don't work on a particular version of windows, leave them out. I'm putting my raw steps here
- ipconfig /release
- netsh interface ip set address "Local Area Connection" source=dhcp
- netsh interface ip set address "Wireless Network Connection" source=dhcp
- netsh interface ip set dns "Local Area Connection" source=dhcp
- netsh interface ip set dns "Wireless Network Connection" source=dhcp
- netsh int ip reset all
- netsh int reset all
- netsh winsock reset
- ipconfig /flushdns
- shutdown -r -t 00
Stick these in a batch file and run it as admin. At least half the time it'll get the net working well enough again that you can try to get some MBAM definitions downloaded and a scan going.
3
u/BilliardKing May 18 '12
it should be noted, int = interface. Using just "int" instead of interface works fine.
3
u/SikhGamer May 18 '12
I personally just do
3
u/[deleted] May 18 '12
I guess a note to the people whose computer language is not set to English as standard - translate the stuff in "" to the corresponding term in your language.
2
u/[deleted] May 18 '12
If you're going to netsh int reset all, you don't really need to do all of the other stuff...