-
Notifications
You must be signed in to change notification settings - Fork 30
Get WinSCPSession
Thomas Malkewitz edited this page Aug 9, 2019
·
8 revisions
Gets a WinSCP.Session object.
Get-WinSCPSession [-WinSCPSession <Session>] [<CommonParameters>]
Gets a WinSCP.Session object.
PS C:\> Get-WinSCPSession
Opened Timeout HostName
------ ------- --------
True 00:01:00 ftp.dotps1.github.io
It represents a session and provides methods for manipulating remote files over SFTP, SCP or FTP session.
Type: Session
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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.
When creating/opeing a WinSCP.Session with the New-WinSCPSession cmdlet, the WinSCPSession PSDefaultParameterValue is set in all other commands in this module. This command is useful to retreive that object if necessary.