How to end VBScript on Windows 10?












-1














I accidently did a cd-drive vbs prank on myself on windows 10 and I can't find the wscript.exe file.. Is there any way to end this program?










share|improve this question






















  • rebooting windows? from task manager?
    – Máté Juhász
    May 18 '16 at 15:08










  • @MátéJuhász There is no process visible in task manager
    – Shariq Musharaf
    May 18 '16 at 15:08










  • Reboot? Look for cscript.exe processes instead of wscript.exe (it's the other scripting host process).
    – Ƭᴇcʜιᴇ007
    May 18 '16 at 15:09












  • @Ƭᴇcʜιᴇ007 There are no files like that there, any other way?
    – Shariq Musharaf
    May 18 '16 at 15:10






  • 1




    Just reboot. Unless you have set it to run at start. In which case, disable that then reboot.
    – EBGreen
    May 18 '16 at 15:17
















-1














I accidently did a cd-drive vbs prank on myself on windows 10 and I can't find the wscript.exe file.. Is there any way to end this program?










share|improve this question






















  • rebooting windows? from task manager?
    – Máté Juhász
    May 18 '16 at 15:08










  • @MátéJuhász There is no process visible in task manager
    – Shariq Musharaf
    May 18 '16 at 15:08










  • Reboot? Look for cscript.exe processes instead of wscript.exe (it's the other scripting host process).
    – Ƭᴇcʜιᴇ007
    May 18 '16 at 15:09












  • @Ƭᴇcʜιᴇ007 There are no files like that there, any other way?
    – Shariq Musharaf
    May 18 '16 at 15:10






  • 1




    Just reboot. Unless you have set it to run at start. In which case, disable that then reboot.
    – EBGreen
    May 18 '16 at 15:17














-1












-1








-1


2





I accidently did a cd-drive vbs prank on myself on windows 10 and I can't find the wscript.exe file.. Is there any way to end this program?










share|improve this question













I accidently did a cd-drive vbs prank on myself on windows 10 and I can't find the wscript.exe file.. Is there any way to end this program?







task-manager vbscript






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 18 '16 at 15:06









Shariq Musharaf

12217




12217












  • rebooting windows? from task manager?
    – Máté Juhász
    May 18 '16 at 15:08










  • @MátéJuhász There is no process visible in task manager
    – Shariq Musharaf
    May 18 '16 at 15:08










  • Reboot? Look for cscript.exe processes instead of wscript.exe (it's the other scripting host process).
    – Ƭᴇcʜιᴇ007
    May 18 '16 at 15:09












  • @Ƭᴇcʜιᴇ007 There are no files like that there, any other way?
    – Shariq Musharaf
    May 18 '16 at 15:10






  • 1




    Just reboot. Unless you have set it to run at start. In which case, disable that then reboot.
    – EBGreen
    May 18 '16 at 15:17


















  • rebooting windows? from task manager?
    – Máté Juhász
    May 18 '16 at 15:08










  • @MátéJuhász There is no process visible in task manager
    – Shariq Musharaf
    May 18 '16 at 15:08










  • Reboot? Look for cscript.exe processes instead of wscript.exe (it's the other scripting host process).
    – Ƭᴇcʜιᴇ007
    May 18 '16 at 15:09












  • @Ƭᴇcʜιᴇ007 There are no files like that there, any other way?
    – Shariq Musharaf
    May 18 '16 at 15:10






  • 1




    Just reboot. Unless you have set it to run at start. In which case, disable that then reboot.
    – EBGreen
    May 18 '16 at 15:17
















rebooting windows? from task manager?
– Máté Juhász
May 18 '16 at 15:08




rebooting windows? from task manager?
– Máté Juhász
May 18 '16 at 15:08












@MátéJuhász There is no process visible in task manager
– Shariq Musharaf
May 18 '16 at 15:08




@MátéJuhász There is no process visible in task manager
– Shariq Musharaf
May 18 '16 at 15:08












Reboot? Look for cscript.exe processes instead of wscript.exe (it's the other scripting host process).
– Ƭᴇcʜιᴇ007
May 18 '16 at 15:09






Reboot? Look for cscript.exe processes instead of wscript.exe (it's the other scripting host process).
– Ƭᴇcʜιᴇ007
May 18 '16 at 15:09














@Ƭᴇcʜιᴇ007 There are no files like that there, any other way?
– Shariq Musharaf
May 18 '16 at 15:10




@Ƭᴇcʜιᴇ007 There are no files like that there, any other way?
– Shariq Musharaf
May 18 '16 at 15:10




1




1




Just reboot. Unless you have set it to run at start. In which case, disable that then reboot.
– EBGreen
May 18 '16 at 15:17




Just reboot. Unless you have set it to run at start. In which case, disable that then reboot.
– EBGreen
May 18 '16 at 15:17










3 Answers
3






active

oldest

votes


















1














Your script probably runs elevated so could become invisible in normal unelevated task manager. Run it elevated as well.



Another approach: open an elevated command line window. Then, taskkill /? could suggest a solution (or read taskkill: End one or more processes by process ID or image name article).



To find process ID of any running Windows scripting engine i.e either wscript.exe or cscript.exe, type



tasklist | findstr /I "PID script.exe"


and search for .vbs i.e. VBScript file extension:



wmic process where "CommandLine like '%.vbs%' and name != 'wmic.exe'" get /value


and search for your script file name (let's say cdprank.vbs):



wmic process where "CommandLine like '%cdprank%' and name != 'wmic.exe'" get /value





share|improve this answer





























    0














    Look for something called "Microsoft Windows Based Script Host" in the running processes. End this process and you should be fine.






    share|improve this answer





















    • How does this differ from the accepted answer
      – Ramhound
      Mar 25 '17 at 14:48










    • This is how I do it as well. Why was this down-voted? Much simpler than the accepted answer. You just run Task Manager, look for the above string, and click "end task".
      – Blisterpeanuts
      Nov 1 at 19:09



















    -1














    For Windows 10 TaskManager>Details search for wscript.exe Right click and select End Process tree.






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1078273%2fhow-to-end-vbscript-on-windows-10%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Your script probably runs elevated so could become invisible in normal unelevated task manager. Run it elevated as well.



      Another approach: open an elevated command line window. Then, taskkill /? could suggest a solution (or read taskkill: End one or more processes by process ID or image name article).



      To find process ID of any running Windows scripting engine i.e either wscript.exe or cscript.exe, type



      tasklist | findstr /I "PID script.exe"


      and search for .vbs i.e. VBScript file extension:



      wmic process where "CommandLine like '%.vbs%' and name != 'wmic.exe'" get /value


      and search for your script file name (let's say cdprank.vbs):



      wmic process where "CommandLine like '%cdprank%' and name != 'wmic.exe'" get /value





      share|improve this answer


























        1














        Your script probably runs elevated so could become invisible in normal unelevated task manager. Run it elevated as well.



        Another approach: open an elevated command line window. Then, taskkill /? could suggest a solution (or read taskkill: End one or more processes by process ID or image name article).



        To find process ID of any running Windows scripting engine i.e either wscript.exe or cscript.exe, type



        tasklist | findstr /I "PID script.exe"


        and search for .vbs i.e. VBScript file extension:



        wmic process where "CommandLine like '%.vbs%' and name != 'wmic.exe'" get /value


        and search for your script file name (let's say cdprank.vbs):



        wmic process where "CommandLine like '%cdprank%' and name != 'wmic.exe'" get /value





        share|improve this answer
























          1












          1








          1






          Your script probably runs elevated so could become invisible in normal unelevated task manager. Run it elevated as well.



          Another approach: open an elevated command line window. Then, taskkill /? could suggest a solution (or read taskkill: End one or more processes by process ID or image name article).



          To find process ID of any running Windows scripting engine i.e either wscript.exe or cscript.exe, type



          tasklist | findstr /I "PID script.exe"


          and search for .vbs i.e. VBScript file extension:



          wmic process where "CommandLine like '%.vbs%' and name != 'wmic.exe'" get /value


          and search for your script file name (let's say cdprank.vbs):



          wmic process where "CommandLine like '%cdprank%' and name != 'wmic.exe'" get /value





          share|improve this answer












          Your script probably runs elevated so could become invisible in normal unelevated task manager. Run it elevated as well.



          Another approach: open an elevated command line window. Then, taskkill /? could suggest a solution (or read taskkill: End one or more processes by process ID or image name article).



          To find process ID of any running Windows scripting engine i.e either wscript.exe or cscript.exe, type



          tasklist | findstr /I "PID script.exe"


          and search for .vbs i.e. VBScript file extension:



          wmic process where "CommandLine like '%.vbs%' and name != 'wmic.exe'" get /value


          and search for your script file name (let's say cdprank.vbs):



          wmic process where "CommandLine like '%cdprank%' and name != 'wmic.exe'" get /value






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 18 '16 at 21:52









          JosefZ

          7,13541543




          7,13541543

























              0














              Look for something called "Microsoft Windows Based Script Host" in the running processes. End this process and you should be fine.






              share|improve this answer





















              • How does this differ from the accepted answer
                – Ramhound
                Mar 25 '17 at 14:48










              • This is how I do it as well. Why was this down-voted? Much simpler than the accepted answer. You just run Task Manager, look for the above string, and click "end task".
                – Blisterpeanuts
                Nov 1 at 19:09
















              0














              Look for something called "Microsoft Windows Based Script Host" in the running processes. End this process and you should be fine.






              share|improve this answer





















              • How does this differ from the accepted answer
                – Ramhound
                Mar 25 '17 at 14:48










              • This is how I do it as well. Why was this down-voted? Much simpler than the accepted answer. You just run Task Manager, look for the above string, and click "end task".
                – Blisterpeanuts
                Nov 1 at 19:09














              0












              0








              0






              Look for something called "Microsoft Windows Based Script Host" in the running processes. End this process and you should be fine.






              share|improve this answer












              Look for something called "Microsoft Windows Based Script Host" in the running processes. End this process and you should be fine.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 25 '17 at 14:15









              DZoten

              11




              11












              • How does this differ from the accepted answer
                – Ramhound
                Mar 25 '17 at 14:48










              • This is how I do it as well. Why was this down-voted? Much simpler than the accepted answer. You just run Task Manager, look for the above string, and click "end task".
                – Blisterpeanuts
                Nov 1 at 19:09


















              • How does this differ from the accepted answer
                – Ramhound
                Mar 25 '17 at 14:48










              • This is how I do it as well. Why was this down-voted? Much simpler than the accepted answer. You just run Task Manager, look for the above string, and click "end task".
                – Blisterpeanuts
                Nov 1 at 19:09
















              How does this differ from the accepted answer
              – Ramhound
              Mar 25 '17 at 14:48




              How does this differ from the accepted answer
              – Ramhound
              Mar 25 '17 at 14:48












              This is how I do it as well. Why was this down-voted? Much simpler than the accepted answer. You just run Task Manager, look for the above string, and click "end task".
              – Blisterpeanuts
              Nov 1 at 19:09




              This is how I do it as well. Why was this down-voted? Much simpler than the accepted answer. You just run Task Manager, look for the above string, and click "end task".
              – Blisterpeanuts
              Nov 1 at 19:09











              -1














              For Windows 10 TaskManager>Details search for wscript.exe Right click and select End Process tree.






              share|improve this answer


























                -1














                For Windows 10 TaskManager>Details search for wscript.exe Right click and select End Process tree.






                share|improve this answer
























                  -1












                  -1








                  -1






                  For Windows 10 TaskManager>Details search for wscript.exe Right click and select End Process tree.






                  share|improve this answer












                  For Windows 10 TaskManager>Details search for wscript.exe Right click and select End Process tree.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 5 at 13:45









                  AV Sunil Kumar

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1078273%2fhow-to-end-vbscript-on-windows-10%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                      Alcedinidae

                      RAC Tourist Trophy