Windows 10: Ran a .BAT file that made my internet not work Solved

Page 1 of 2 12 LastLast
  1.    07 Dec 2017 #1

    Ran a .BAT file that made my internet not work


    I ran this code as admin and my internet doesn't work anymore. How do i remove or revert everything I did? Please help, thanks
    Code:
    • @echo off
    • IF NOT "%CHANGEME%"=="1" (
    • powershell New-NetQosPolicy -Name "CHANGEME" -Default -ThrottleRateActionBitsPerSecond 8 -PolicyStore ActiveStore
    • SetX CHANGEME 1
    • )
    • IF "%CHANGEME%"=="1" (
    • powershell Remove-NetQosPolicy -Name "CHANGEME" -PolicyStore ActiveStore -confirm:$false
    • SetX CHANGEME 2
    • )
      My ComputerSystem Spec

  2.    07 Dec 2017 #2

    Is that the entire contents of the .BAT file? What was the entire command you ran? What is the output of "get-NetQosPolicy" in Powershell?
      My ComputerSystem Spec

  3.    08 Dec 2017 #3

    PolarNettles said: View Post
    Is that the entire contents of the .BAT file? What was the entire command you ran? What is the output of "get-NetQosPolicy" in Powershell?

    i saved that whole code in a batch and ran it as a admin and then internet stopped working.

    everything that you see was ran in admin, idk how to revert it / make it default i dont understand this "code"
      My ComputerSystem Spec

  4.    08 Dec 2017 #4

    Open an admin PowerShell window and run:

    Remove-NetQosPolicy -Name "CHANGEME" -PolicyStore ActiveStore -confirm:$false

    If that doesn't work then copy+paste the output of "get-NetQosPolicy".
      My ComputerSystem Spec

  5.    08 Dec 2017 #5

    PolarNettles said: View Post
    Open an admin PowerShell window and run:

    Remove-NetQosPolicy -Name "CHANGEME" -PolicyStore ActiveStore -confirm:$false

    If that doesn't work then copy+paste the output of "get-NetQosPolicy".

    Click image for larger version. 

Name:	image.png 
Views:	2 
Size:	15.0 KB 
ID:	167361


    also is there anyway I can view this NetQosPolicy as a file or notepad instead of powershell?
      My ComputerSystem Spec

  6. Wiley Coyote's Avatar
    Posts : 914
    Windows 10 Home x64 Version 1809 (OS Build 17763.55)
       08 Dec 2017 #6

    You can copy and paste it into Notepad.

    Highlight it all with the mouse
    Ctrl C
    Notepad
    Ctrl V
      My ComputersSystem Spec

  7.    08 Dec 2017 #7

    McSweg said: View Post
    also is there anyway I can view this NetQosPolicy as a file or notepad instead of powershell?
    I don't believe so. Can you post the output of "get-NetQosPolicy" from PowerShell?
      My ComputerSystem Spec

  8.    09 Dec 2017 #8

    PolarNettles said: View Post
    I don't believe so. Can you post the output of "get-NetQosPolicy" from PowerShell?
    Click image for larger version. 

Name:	image.png 
Views:	23 
Size:	3.3 KB 
ID:	167405

    nothing happened
      My ComputerSystem Spec

  9.    09 Dec 2017 #9

    CWGilley said: View Post
    You can copy and paste it into Notepad.

    Highlight it all with the mouse
    Ctrl C
    Notepad
    Ctrl V

    what?
      My ComputerSystem Spec

  10.    09 Dec 2017 #10

    McSweg said: View Post
    Click image for larger version. 

Name:	image.png 
Views:	23 
Size:	3.3 KB 
ID:	167405

    nothing happened
    Then your batch file didn't actually do anything. What exactly do you mean by your "internet doesn't work anymore?"
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
Hi fellow members, I find myself turning to you for an issue that baffles me. For some reason, I cannot import this registry script I made. Syntax seems to be correct. I'm thinking it's most likely an invalid key somewhere. Can someone take a look...
I successfully installed 14257; however, I have nothing but problems with it. I cannot get Internet explorer to work. It freezes up, cannot use the back or forward arrow, cannot change addresses, and at one time I received an error message saying...
So yesterday I went on the microsoft live chat so they can help me get windows 10 because I was tired of waiting for my reserved copy to arrive. The person took control of my pc, and ended up deleting some temp files I guess and also renamed some...
Hi guys, I've Just built my PC about a week ago. Opened up the PC 2 days ago to re-wire the cables so its more neater. Reconnected everything and has been working perfectly until I got the BSOD this morning. This morning I was surfing the...
In Windows 7 I could press F1 with the desktop selected and would get help. If I do this in Windows 10 without the internet connected, I just get a screen saying "Get connected to the Internet". This is crazy - there's lots of times when I am...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 05:14.
Find Us