Monday, January 19, 2009

stop a particular instance of the Notepad process by its ID

PS> stop-process -id 3952 -confirm -passthru

Explanation: ` -confirm ` parameter prompts the user before stopping the process. Because the prompt includes the process name, as well as its ID, this is best practice. ` -passthru ` parameter passes the process object to the formatter for display. (This is not applicable to graphical powershell)

No comments:

Post a Comment