Identification of Process for termination

Nandan Hegde 32,181 Reputation points MVP
2024-08-23T07:04:58.51+00:00

When I am opening a Power BI file, sometimes the below window pops up :

How can I identify this process and terminate it in an automated way?

Note : I tried to get distinct process name prior to opening this file and post that and there were several new processes which included:

pbidesktop, svchost, conhost, msmdsrv etc

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,517 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 46,636 Reputation points
    2024-08-24T15:50:52.8966667+00:00

    You may be able to get the dialog box (assuming that's what your screenshot represents) by using the UIAutomation module.

    Once you've found the dialog box you can use the functions in the module to click on the "Cancel" button to dismiss the dialog box (if that's your intention) or to fill the text box and then click "Continue".

    But that doesn't get you to an answer to the "find the process" part. For that you'd have to find every window and then check each to see if it has an open dialog box.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.