< Back
Import-PuttySession
Post
NAME Import-PuttySession
SYNOPSIS
Import previously exported PuTTY sessions.
SYNTAX
Import-PuttySession [-Path] <String> [[-KeyFileDirectory] <String>] [<CommonParameters>]
DESCRIPTION
Import previously exported PuTTY sessions.
PARAMETERS
-Path <String>
The path to the directory that contains the directory of the exported session.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-KeyFileDirectory <String>
The directory to save the private key of the session, if any. If the session has a private key and no value is
specified, a directory will be created in the user's profile.
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 --------------------------
Import-PuTTYSession '.\\Sessions\\firewall\\'
Import the "firewall" session.
-------------------------- EXAMPLE 2 --------------------------
Import-PuTTYSession -Path .\\Sessions\\router\\ -KeyFileDirectory $home\\SFTP-Keys
Import the "router" session and save the private key in the "SFTP-Keys" directory.
-------------------------- EXAMPLE 3 --------------------------
Get-ChildItem .\\Sessions\\ | %{ Import-PuttySession -Path $_.FullName}
Import all the sessions saved under the "Sessions" directory.
RELATED LINKS
SYNOPSIS
Import previously exported PuTTY sessions.
SYNTAX
Import-PuttySession [-Path] <String> [[-KeyFileDirectory] <String>] [<CommonParameters>]
DESCRIPTION
Import previously exported PuTTY sessions.
PARAMETERS
-Path <String>
The path to the directory that contains the directory of the exported session.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-KeyFileDirectory <String>
The directory to save the private key of the session, if any. If the session has a private key and no value is
specified, a directory will be created in the user's profile.
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 --------------------------
Import-PuTTYSession '.\\Sessions\\firewall\\'
Import the "firewall" session.
-------------------------- EXAMPLE 2 --------------------------
Import-PuTTYSession -Path .\\Sessions\\router\\ -KeyFileDirectory $home\\SFTP-Keys
Import the "router" session and save the private key in the "SFTP-Keys" directory.
-------------------------- EXAMPLE 3 --------------------------
Get-ChildItem .\\Sessions\\ | %{ Import-PuttySession -Path $_.FullName}
Import all the sessions saved under the "Sessions" directory.
RELATED LINKS