Kill Process error

Hi, I am using the below code to kill process,
image

i get a list of open processes using Process.GetProcesses , I have day8 app open , it closes first time, but the list has day8 app many times, and every time it tries to close this process, but fails, because it got closed first time itself. I keep getting error - access denied
What is the problem and how can it be solved.

ThanksKillProcesses.xaml (35.7 KB)

1 Like

Hi @Rani1978,
Please check whether the logged in windows user is administrator or not. if it’s a standard user change it to Administrator and try again.

Try using taskkill with powershell activity