external help file | Module Name | online version | schema |
---|---|---|---|
PoshSSH.dll-Help.xml |
Posh-SSH |
2.0.0 |
Upload a specific item to a remote server though a SFTP Session.
Set-SFTPItem [-SessionId] <Int32[]> [-Destination] <String> [-Path] <String[]> [-Force]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Set-SFTPItem [-SFTPSession] <SftpSession[]> [-Destination] <String> [-Path] <String[]> [-Force]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Upload a specific item to a remote server through a SFTP Session. The item can be either a file or a folder.
PS C:\> Set-SFTPItem -SessionId 0 -Destination /tmp -Path ./Development/dns_test.py -Force
Remote path where to upload the item to.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Overwrite item on remote host if it already pressent.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Local path to item to upload
Type: String[]
Parameter Sets: (All)
Aliases: PSPath
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Existing SFTPSession object.
Type: SftpSession[]
Parameter Sets: Session
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Session Id of an existing SFTPSession.
Type: Int32[]
Parameter Sets: Index
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
SSH.SftpSession[] System.String System.String[]