ShellPrompt Parameter (Connect-SSH Cmdlet)

Specifies the shell prompt to wait for.

Syntax

Connect-SSH -ShellPrompt string

Remarks

If ShellPrompt is specified, the cmdlet will not use the SEXEC protocol, but instead will just request shell access and wait until the specified shell prompt comes up. Commands will then be executed through the shell instead of the SExec mechanism, which allows multiple commands sent over a single connection to share state on the server.

Default Value

""

Copyright (c) 2022 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 8319]