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

Discus and support Ran a .BAT file that made my internet not work in Windows 10 Network and Sharing to solve the problem; 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... Discussion in 'Windows 10 Network and Sharing' started by McSweg, Dec 7, 2017.

  1. McSweg Win User

    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
    • )
    [/quote]

    :)
     
    McSweg, Dec 7, 2017
    #1

  2. "Get connected" wont detect available connection types!

    hey miksu, yes, i ran the bat file, still doesnt work...
     
    mic123---01, Dec 7, 2017
    #2
  3. pshriram Win User
    6280 connection to PC problem

    I got it to work. I ran the bat file provided earlier & it worked like a charm. Maybe some components (dll's) were not registered!

    Cheers!
     
    pshriram, Dec 7, 2017
    #3
  4. Ran a .BAT file that made my internet not work

    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?
     
    PolarNettles, Dec 7, 2017
    #4
  5. McSweg Win User
    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"
     
    McSweg, Dec 7, 2017
    #5
  6. 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".
     
    PolarNettles, Dec 7, 2017
    #6
  7. McSweg Win User
    Ran a .BAT file that made my internet not work [​IMG]



    also is there anyway I can view this NetQosPolicy as a file or notepad instead of powershell?
     
    McSweg, Dec 8, 2017
    #7
  8. Ran a .BAT file that made my internet not work

    You can copy and paste it into Notepad.

    Highlight it all with the mouse
    Ctrl C
    Notepad
    Ctrl V
     
    Wiley Coyote, Dec 8, 2017
    #8
  9. I don't believe so. Can you post the output of "get-NetQosPolicy" from PowerShell?
     
    PolarNettles, Dec 8, 2017
    #9
  10. McSweg Win User
    Ran a .BAT file that made my internet not work [​IMG]


    nothing happened
     
    McSweg, Dec 8, 2017
    #10
  11. McSweg Win User
    what?
     
    McSweg, Dec 8, 2017
    #11
  12. Then your batch file didn't actually do anything. What exactly do you mean by your "internet doesn't work anymore?"
     
    PolarNettles, Dec 8, 2017
    #12
  13. Ran a .BAT file that made my internet not work

    I'm sorry, but I don't fully understand "what" you're asking here.
     
    Wiley Coyote, Dec 8, 2017
    #13
  14. McSweg Win User
    well when i ran the original batch as admin it made my internet fully stop working, i asked at other locations for help and one user said replace the

    -ThrottleRateActionBitsPerSecond 8

    with
    -ThrottleRateActionBitsPerSecond 800000000000000

    (which i did) and it made my internet work but i didnt know how to completely remove what ever i just added to my system
     
    McSweg, Dec 8, 2017
    #14
  15. Since "get-NetQosPolicy" doesn't display anything then it means that there are no more QOS policies in the system. So the policy is already removed.
     
    PolarNettles, Dec 8, 2017
    #15
Thema:

Ran a .BAT file that made my internet not work

Loading...
  1. Ran a .BAT file that made my internet not work - Similar Threads - Ran BAT file

  2. i made a somthing in a bat file but when i try to open it in wont work

    in Windows 10 Gaming
    i made a somthing in a bat file but when i try to open it in wont work: When i open it it says this: This app cannot run on your PC, check with the software publisher to see if there is a version for your PC https://answers.microsoft.com/en-us/windows/forum/all/i-made-a-somthing-in-a-bat-file-but-when-i-try-to/0519766b-ca51-49c6-a251-8707d77d1bcd
  3. i made a somthing in a bat file but when i try to open it in wont work

    in Windows 10 Software and Apps
    i made a somthing in a bat file but when i try to open it in wont work: When i open it it says this: This app cannot run on your PC, check with the software publisher to see if there is a version for your PC https://answers.microsoft.com/en-us/windows/forum/all/i-made-a-somthing-in-a-bat-file-but-when-i-try-to/0519766b-ca51-49c6-a251-8707d77d1bcd
  4. i made a somthing in a bat file but when i try to open it in wont work

    in Windows 10 Drivers and Hardware
    i made a somthing in a bat file but when i try to open it in wont work: When i open it it says this: This app cannot run on your PC, check with the software publisher to see if there is a version for your PC https://answers.microsoft.com/en-us/windows/forum/all/i-made-a-somthing-in-a-bat-file-but-when-i-try-to/0519766b-ca51-49c6-a251-8707d77d1bcd
  5. Undo a startup made with .bat file

    in Windows 10 Gaming
    Undo a startup made with .bat file: Hello,i runned a .bat file that conteined this script : @Echo off "path" Exit ;the script launchs a program at the startup, how can i undo this?thanks for ur help...
  6. Undo a startup made with .bat file

    in Windows 10 Software and Apps
    Undo a startup made with .bat file: Hello,i runned a .bat file that conteined this script : @Echo off "path" Exit ;the script launchs a program at the startup, how can i undo this?thanks for ur help...
  7. Undo a startup made with .bat file

    in Windows 10 Drivers and Hardware
    Undo a startup made with .bat file: Hello,i runned a .bat file that conteined this script : @Echo off "path" Exit ;the script launchs a program at the startup, how can i undo this?thanks for ur help...
  8. Bat file

    in Windows 10 Gaming
    Bat file: I have a bat fileI am improving it bit by bit till I have reached But not i have added a warning to it before a commandI now want to make that line font size Bigger than the others How can I do that ??So here is the Batch file content@ECHO OFF echo...
  9. .bat files

    in Windows 10 Network and Sharing
    .bat files: So i am trying to make a minecraft server and need to open a .bat file but i keep getting a error saying "This app can not run on this pc" But it worked a month ago i need a solution please....
  10. A .BAT file was ran on my laptop to disable windows 10 security

    in AntiVirus, Firewalls and System Security
    A .BAT file was ran on my laptop to disable windows 10 security: Recently my friends tried to get a rat on my laptop and i managed to stop them in the middle of it, the only problem is my windows security options like real time protection are grayed out. The .BAT file ran this code (@Echo off reg add...