< Back

Export-PuttySession

Mon Jan 13, 2020 6:18 am

NAME Export-PuttySession



SYNOPSIS

Export a saved PuTTY session.





SYNTAX

Export-PuttySession [[-Name] <String>] [[-Path] <String>] [<CommonParameters>]





DESCRIPTION

Export a saved PuTTY session.





PARAMETERS

-Name <String>

The name of the session to export. If not specified, all sessions will be exported.



Required? false

Position? 0

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Path <String>

The path to save the files to. A directory will be created and named after the session. If not specified, the

current directory will be used.



Required? false

Position? 1

Default value

Accept pipeline input? false

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









OUTPUTS









NOTES









-------------------------- EXAMPLE 1 --------------------------



Export-PuTTYSession -Path .\\Sessions\\



Export all PuTTY saved sessions to the "Sessions" directory.







-------------------------- EXAMPLE 2 --------------------------



Export-PuTTYSession -Name firewall -Path .\\Sessions\\



Export the "firewall" PuTTY session to the "Sessions" directory.









RELATED LINKS