Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Exit-PSHostProcess

Exit-PSHostProcess

system.management.automation.dll

Synopsis

Closes an interactive session with a local process.

Syntax

Exit-PSHostProcess [<CommonParameters>]

Detailed Description

Exit-PSHostProcess closes an interactive session with a local process that you have opened by running the Enter-PSHostProcess cmdlet. You run the Exit-PSHostProcess cmdlet from within the process, when you are finished debugging or troubleshooting a script that is running within a process.

Parameters

Input Type


Return Type


Notes

None

Examples

Example 1: Exit a process

In this example, you have been working within an active process to debug a script running in a runspace within the process, as described in Enter-PSHostProcess. After you type the exit command to exit the debugger, run the Exit-PSHostProcess cmdlet to close your interactive session with the process. The cmdlet closes your session in the process, and returns you to the PS C:\> prompt.

PS C:\>[Process:1520]: PS C:\> Exit-PSHostProcess
PS C:\>

Online Version
Get-Process
Enter-PSHostProcess
Debug-Runspace
Enable-RunspaceDebug
about_Debuggers