Windows 10: Using Cortana to end processes, some new approaches

Discus and support Using Cortana to end processes, some new approaches in Cortana to solve the problem; Hi I posted this on the MSDN Cortana developers forum but I thought it might be interesting to this community. After a long search, I have found a... Discussion in 'Cortana' started by johnkoppms, Mar 15, 2020.

  1. Using Cortana to end processes, some new approaches


    Hi


    I posted this on the MSDN Cortana developers forum but I thought it might be interesting to this community.


    After a long search, I have found a way to end processes that Cortana can respond to. This fix was originally posted on Youtube by Rahul B ttps://www.youtube.com/watch?v=q5m4Bm7EWDo&t=14s it involves writing a Javascript and creating a shortcut that you put into the Windows startup folder. Here is a script that closes firefox.



    Option Explicit
    Dim objWMIService, objProcess, colProcess
    Dim strComputer, strProcessKill
    strComputer = "."
    strProcessKill = "'firefox.exe'"

    Set objWMIService = GetObject"winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\cimv2"

    Set colProcess = objWMIService.ExecQuery _
    "Select * from Win32_Process Where Name = " & strProcessKill
    For Each objProcess in colProcess
    objProcess.Terminate
    Next
    WScript.Quit



    It works as a stand-alone program and a Cortana request "Hey Cortana, Open Close Firefox". There are 2 problems that crop up when you use that Cortana call.

    1. Cortana generates a request to either use "Fiefox.exe" or the shortcut "Close Firefox.vbs". I can't get Cortana to automatically pick the one that closes Firefox. I thought renaming the shortcut something else would solve the problem but then the "Open, Close Firefox" would no longer work.



    2. After successfully closing Firefox an error popped up saying


    I hope that someone can help me correct these problems or explain why they can't be solved. I hope these problems can be fixed because opening up Cortana can add a lot of functionality to Cortana.



    Thanks

    :)
     
    johnkoppms, Mar 15, 2020
    #1
  2. MattCorey Win User

    My search is not functioning

    1. Use the shortcut Ctrl-Shift-Esc to open the Task Manager.
    2. If you see only a handful programs listed by it click on the "more details" link.
    3. Locate "Cortana" under background processes.
    4. Right-click on the process and select "end task" from the context menu.
    The Cortana process is reloaded right away by the operating system.

    i strongly suggest u to follow step by step fix with pictures on https://geeksadvice.com/fix-windows-search-not-working/
     
    MattCorey, Mar 15, 2020
    #2
  3. GNJha Win User
    Boot Process

    Hi,

    Please suggest me a link that can explain the boot process step by step of ...

    • Windows 7,
    • Windows 8.1,
    • Windows 10,
    • Windows Server 2008 R2 and
    • Windows Server 2012 R2

    With Regards

    InTech
     
    GNJha, Mar 15, 2020
    #3
  4. John Fue Win User

    Using Cortana to end processes, some new approaches

    [Video] Cortana immediantly gives an error, but answers my second question with the first question's answer.

    Hi Devui,

    We would like to suggest the following steps to address your concern:

    • Turn Cortana off
    • Hold Ctrl+Shift and press Esc to open up
      Task Manager.
    • Right-click Cortana in the list of background processes and click
      End Task.
    • Go do the Cortana setup bits, putting in your name, activating required system things (indexing/location/etc), do the "Hey Cortana" bit so she recognizes how you say it. Then Restart before asking anything.

    Best regards.
     
    John Fue, Mar 15, 2020
    #4
Thema:

Using Cortana to end processes, some new approaches

Loading...
  1. Using Cortana to end processes, some new approaches - Similar Threads - Using Cortana end

  2. End of support for Cortana

    in Windows 10 Gaming
    End of support for Cortana: While the decision to phase out Cortana may have disappointed some users, it's important to recognize that Microsoft is continually evolving its products to meet the changing needs of its customers. Here are some reasons why bringing back Cortana might still be...
  3. End of support for Cortana

    in Windows 10 Software and Apps
    End of support for Cortana: While the decision to phase out Cortana may have disappointed some users, it's important to recognize that Microsoft is continually evolving its products to meet the changing needs of its customers. Here are some reasons why bringing back Cortana might still be...
  4. I accidently end some process

    in Windows 10 Software and Apps
    I accidently end some process: I was trying to delete the game , I mistake some process with game and end those in RUN. Black screen happen after that. So, i restart the laptop. I thought everything was fine after that but it's start to lag a lot and I have to wait too long to open microsofe edge. How can...
  5. I accidently end some process

    in Windows 10 Gaming
    I accidently end some process: I was trying to delete the game , I mistake some process with game and end those in RUN. Black screen happen after that. So, i restart the laptop. I thought everything was fine after that but it's start to lag a lot and I have to wait too long to open microsofe edge. How can...
  6. task manager end process

    in Windows 10 BSOD Crashes and Debugging
    task manager end process: I want to end antimalware service executable it has windows defender when i say end task it says access is denied and it can't happen. how do i gain access https://answers.microsoft.com/en-us/windows/forum/all/task-manager-end-process/81d90273-6cff-47b6-8aaa-5c3dfc5a0dba
  7. How to end process tree??

    in Windows 10 Ask Insider
    How to end process tree??: On my new pc i cant seem to end a process tree in task manager. I can end the process but the " end process tree" option is missing from the right click menu. Annoying Edit: task tree, my b submitted by /u/Chicken_Slam [link] [comments]...
  8. KO Approach

    in Windows 10 Ask Insider
    KO Approach: Any software for windows that is like KO Approach. Either in the context menu like in KO or in any other way? submitted by /u/suskab [link] [comments] https://www.reddit.com/r/Windows10/comments/f1kgue/ko_approach/
  9. Install process just ends

    in Windows 10 Software and Apps
    Install process just ends: Hi guys, I am trying to install the latest PowerBI on a windows 10 machine. It had a previous version which was playing up so we uninstalled it and wanted to install a clean version. When installing, I open the exe as the admin. i am the admin. I am prompted if I want the...
  10. Ended windows explorer process

    in Windows Hello & Lockscreen
    Ended windows explorer process: Hello, i accedentally ended windows explorer not from task manager. My laptop is pretty old and is starting to have slower and worse performance. Windows explorer stopped working and it showed a message to end process. I clicked on end process and everything vanished. Which...