Windows PowerShell command on Get-command Exit-PSHostProcess
MyWebUniversity

Windows PowerShell command on Get-command Exit-PSHostProcess

NAME

Exit-PSHostProcess

SYNOPSIS

Closes an interactive session with a local process.

SYNTAX

Exit-PSHostProcess []

DESCRIPTION

The Exit-PSHostProcess cmdlet 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

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

Example 1: Exit a process

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

PS C:\>

In this example, you have been working in an active process to debug a script running in a runspace in 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.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=403737

Enter-PSHostProcess



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™