< Back

Remove-SFTPSession

Sat Jan 18, 2020 7:59 pm

NAME Remove-SFTPSession



SYNOPSIS

Close and Remove a SFTP Session





SYNTAX

Remove-SFTPSession [-SessionId] <Int32[]> [<CommonParameters>]



Remove-SFTPSession [[-SFTPSession] <SftpSession[]>] [<CommonParameters>]





DESCRIPTION

Close and Remove a SFTP Session specified by Index or SFTP Session Object.





PARAMETERS

-SessionId <Int32[]>

SFTP Session Id of an exiting session.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-SFTPSession <SftpSession[]>

SFTP Session Object of an exiting session.



Required? false

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

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

System.Int32[]





SSH.SftpSession[]







OUTPUTS



NOTES









-------------------------- EXAMPLE 1 --------------------------



Remove-SFTPSession -SessionId 0 -Verbose

VERBOSE: 0

VERBOSE: Removing session 0

True

VERBOSE: Session 0 Removed







RELATED LINKS

Online Version: https://github.com/darkoperator/Posh-SS ... aster/docs