Online Help > PowerShell Scripting

Export-RDMSession

SYNOPSIS

Export a list of sessions to a file

 

SYNTAX

Export-RDMSession -CSV [CSV] <SwitchParameter> -ExcludeSessionPassword [ExcludeSessionPassword] <SwitchParameter> -HTML [HTML] <SwitchParameter> -IncludeCredentials [IncludeCredentials] <SwitchParameter> -IncludeSecurityGroups [IncludeSecurityGroups] <SwitchParameter> -Password [Password] <SecureString> -Path [Path] <String> -Sessions [Sessions] <PSConnection[]> -XML [XML] <SwitchParameter> [<CommonParameters>]

 

DESCRIPTION

Export a list of sessions to a file

 

PARAMETERS

  -CSV <SwitchParameter>

(Required) Export the sessions into a CSV file

 

  -ExcludeSessionPassword <SwitchParameter>

Don't export the password in the connections exported

 

  -HTML <SwitchParameter>

(Required) Export the sessions into a HTML file

 

  -IncludeCredentials <SwitchParameter>

Include credentials in the export (Only available for the XML type).

 

  -IncludeSecurityGroups <SwitchParameter>

Include Security Groups in the export (Only available for the XML type).

 

  -Password <SecureString>

Password.

 

  -Path <String>

(Required) Path where the file will be the saved. Must end with:

 

"CSV: .zip", "HTML: .html", "XML: .xml", "RDM: .rdm"

 

  -Sessions <PSConnection[]>

(Required) Sessions.

 

  -XML <SwitchParameter>

(Required) Export the sessions into a XML file

 

  <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer and OutVariable.For more information, type, "get-help about_commonparameters".

 

NOTES

For more information, type "Get-Help Export-RDMSession -detailed". For technical information, type "Get-Help Export-RDMSession -full".

 

EXAMPLE 1

PS C:\> $sessions = get-rdmsession; $password = read-host -assecurestring "Password"; Export-RDMSession -XML -Path C:\MyPath\MyFilename.xml -Sessions $sessions -Password $password

 

Retrieves the list of available sessions and export them to a xml file at C:\MyPath\Filename.xml.

 

RELATED LINKS