Use PowerShell to stop-process, can i bypass confirm? Use PowerShell to stop-process, can i bypass confirm? powershell powershell

Use PowerShell to stop-process, can i bypass confirm?


Try

stop-process -ProcessName alcore.* -Force

From get-help stop-process:

On Windows Vista and later versions of Windows, to stop a process that is not owned by the current user, you must start Windows PowerShell with the "Run as administrator" option. Also, you are prompted for confirmation unless you use the Force parameter.


If you don't want it to do a confirmation then don't use the -confirm option but instead the -force. Doing this will cause the process to be stopped without any user confirmation.

kill -force outlook