< Back

Set-SFTPLocation

Sat Jan 18, 2020 8:00 pm

NAME Set-SFTPLocation



SYNOPSIS

Change current location of the SFTP session.





SYNTAX

Set-SFTPLocation [-SessionId] <Int32[]> [-Path] <String> [<CommonParameters>]



Set-SFTPLocation [-SFTPSession] <SftpSession[]> [-Path] <String> [<CommonParameters>]





DESCRIPTION

Change current location of the SFTP session.





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



-Path <String>

Remote path to change current location of the SFTP session.



Required? true

Position? 1

Default value None

Accept pipeline input? False

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:\\> Set-SFTPLocation -SessionId 0 -Path /usr/local

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

/usr/local



Set the SFTP session current location to /usr/local



RELATED LINKS

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