< Back

Get-SFTPLocation

Sat Jan 18, 2020 7:56 pm

NAME Get-SFTPLocation



SYNOPSIS

Get the current working location for a SFTP connection.





SYNTAX

Get-SFTPLocation [-SessionId] <Int32[]> [<CommonParameters>]



Get-SFTPLocation [-SFTPSession] <SftpSession[]> [<CommonParameters>]





DESCRIPTION

Get the current working location for a SFTP connection.





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? true

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



PS C:\\> Get-SFTPLocation -SessionId 0

/home/carlos



Get the current SFTP location a given session is executing under.



RELATED LINKS

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