Ran a .BAT file that made my internet not work

Page 1 of 2 12 LastLast

  1. Posts : 114
    Windows 10 Home
       #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 Computer


  2. Posts : 809
    Win10
       #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 Computer


  3. Posts : 114
    Windows 10 Home
    Thread Starter
       #3

    PolarNettles said:
    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 Computer


  4. Posts : 809
    Win10
       #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 Computer


  5. Posts : 114
    Windows 10 Home
    Thread Starter
       #5

    PolarNettles said:
    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".

    Ran a .BAT file that made my internet not work-image.png


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


  6. Posts : 1,097
    Windows 10 Home x64 Version 1809 (OS Build 17763.437)
       #6

    You can copy and paste it into Notepad.

    Highlight it all with the mouse
    Ctrl C
    Notepad
    Ctrl V
      My Computer


  7. Posts : 809
    Win10
       #7

    McSweg said:
    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 Computer


  8. Posts : 114
    Windows 10 Home
    Thread Starter
       #8

    PolarNettles said:
    I don't believe so. Can you post the output of "get-NetQosPolicy" from PowerShell?
    Ran a .BAT file that made my internet not work-image.png

    nothing happened
      My Computer


  9. Posts : 114
    Windows 10 Home
    Thread Starter
       #9

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

    Highlight it all with the mouse
    Ctrl C
    Notepad
    Ctrl V

    what?
      My Computer


  10. Posts : 809
    Win10
       #10

    McSweg said:
    Ran a .BAT file that made my internet not work-image.png

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


 

  Related Discussions
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 10:29.
Find Us




Windows 10 Forums