Export-RDMSession
Synopsis
Export a list of sessions to a file
Syntax
CSVExport
Export-RDMSession -CSV -Sessions <PSConnection[]> -Path <string> -Password <securestring>
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]HTMLExport
Export-RDMSession -HTML -Sessions <PSConnection[]> -Path <string> -Password <securestring>
[-ExcludeSessionPassword] [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]XMLExport
Export-RDMSession -XML -Sessions <PSConnection[]> -Path <string> [-Password <securestring>]
[-Version <RDMExportVersion>] [-ExcludeShortcuts] [-IncludeCredentials] [-IncludeAttachements]
[-IncludeDocumentation] [-IncludeFavorite] [-RemoveAllFolders]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]Description
Export a list of sessions to a file. The user must have the right to export. The sessions must come from the current workspace or they will be ignored. If user vault export is disabled, the sessions from the private vault will be ignored.
Examples
Retrieves the list of available sessions and export them to a rdm file at C:\MyPath\Filename.rdm.
Parameters
-CSV
Export the sessions into a CSV file
-ExcludeSessionPassword
Don't export the password in the connections exported
-ExcludeShortcuts
Exclude shortcuts in the export (Only available for the XML type).
-ForcePromptAnswer
Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:
Yes: Accept the prompt. Cover the OK and Automatic value.
No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.
Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.
-HTML
Export the sessions into a HTML file
-IncludeAttachements
Include attachements in the export (Only available for the XML type).
-IncludeCredentials
Include credentials in the export (Only available for the XML type).
-IncludeDocumentation
Include entry documentation in the export (Only available for the XML type).
-IncludeFavorite
keep the favorite status.
-Password
Password.
-Path
Path where the file will be the saved. Must end with:
"CSV: .zip", "HTML: .html", "XML: .xml", "RDM: .rdm"
-RemoveAllFolders
Remove all folders. All other entries will have their group set at the root level.
-Sessions
Sessions.
-Version
Export file version for '.xml' and '.rdm' files. The default value is v2.
-XML
Export the sessions into a XML file
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
System.String
File path
System.Security.SecureString
Password used to protect the file
Notes
For more information, type "Get-Help Export-RDMSession -detailed". For technical information, type "Get-Help Export-RDMSession -full".
Last updated
Was this helpful?