Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Stop-Process

Stop-Process - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Stops one or more running processes.

Stop-Process [-Id] <Int32[]> [-Force] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
Stop-Process [-InputObject] <Process[]> [-Force] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
Stop-Process [-Force] [-PassThru] -Name <String[]> [-Confirm] [-WhatIf] [<CommonParameters>]

The Stop-Process cmdlet stops one or more running processes. You can specify a process by process name or process ID (P
ID), or pass a process object to Stop-Process.  Stop-Process works only on processes running on the local computer.

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.