For the complete documentation index, see llms.txt. This page is also available as Markdown.

Stop-PSUTerminalInstance

Stops a running terminal instance.

SYNOPSIS

Stops a running terminal instance.

SYNTAX

Stop-PSUTerminalInstance -TerminalInstance <TerminalInstance> [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Stops a running terminal instance. You can retrieve terminal instances by using Get-PSUTerminalInstance.

EXAMPLES

Example 1

PS C:\> $Terminal = Get-PSUTerminal | Where-Object Name -eq 'Terminal1'
PS C:\> Start-PSUTerminalInstance -Terminal $Terminal 
PS C:\> Get-PSUTerminalInstance | Stop-PSUTerminalInstance

Starts a new terminal instance and then stops it.

PARAMETERS

-AppToken

An App Token for authenticating against the PowerShell Universal server.

-ComputerName

The name or URL of the PowerShell Universal server.

-Integrated

Not Supported

-TerminalInstance

The terminal instance to stop. Use Get-PSUTerminalInstance to return running instances.

-UseDefaultCredentials

Use Windows Authentication.

-Credential

Credentials to login to the PowerShell Universal Management API.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

PowerShellUniversal.TerminalInstance

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?