-
Notifications
You must be signed in to change notification settings - Fork 30
Invoke WinSCPCommand
Thomas Malkewitz edited this page Aug 9, 2019
·
16 revisions
Executes command on the remote server.
Invoke-WinSCPCommand -Command <String[]> -WinSCPSession <Session> [<CommonParameters>]
Executes command on the remote server.
PS C:\> Invoke-WinSCPCommand -Command "HASH ./TestDoc.txt"
Output : 213 MD5 ae661d08d1ca1576a6efcb82b7bc502f
ErrorOutput :
ExitCode : 0
Failures : {}
IsSuccess : True
Command to execute.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
It represents a session and provides methods for manipulating remote files over SFTP, SCP or FTP session.
Type: Session
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
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.
System.String[]