Online Help > PowerShell Scripting

New-RDMSession

SYNOPSIS

Create a new session instance.

 

SYNTAX

New-RDMSession -Group [Group] <String> -Host [Host] <String> -Name [Name] <String> -SetSession [SetSession] <SwitchParameter> -TemplateID [TemplateID] <Guid> -Type [Type] <String> [<CommonParameters>]

 

DESCRIPTION

Create a new session instance. The instance has not yet been saved. Assign the result to a variable then call "Set-RDMSession $s" to save the session.

 

PARAMETERS

  -Group <String>

Session group.

 

  -Host <String>

New Session host.

 

  -Name <String>

(Required) New PSSession name.

 

  -SetSession <SwitchParameter>

Save the session in the current data source

 

  -TemplateID <Guid>

Create PSSession from template.

 

  -Type <String>

(Required) New session kind. Must be on of the following:

 

"ADConsole", "AddOn", "AppleRemoteDesktop", "ApplicationTool", "Aws", "Azure", "AzureQueueStorage", "AzureStorage", "BeyondTrustPasswordSafeConsole", "ChromeRemoteDesktop"CitrixWeb", "CommandLine", "Computer", "Contact", "ControlUp", "Credential", "Customer", "Dameware", "Database", "DataEntry", "DataReport", "DataSource", "DeskRoll", "Desktone", "DevolutionsProxy", "Document", "DropBox", "Ftp", "Gateway", "Group", "Host", "HpRgs", "HyperV", "ICA", "IDrac", "Ilo", "IntelAMT", "InventoryReport", "Iterm", "LogMeIn", "PCAnywhere", "PlayList", "PortForward", "PowerShell", "PowerShellRemoteConsole", "ProxyTunnel", "PSExec", "Putty", "Radmin", "RDCommander", "RDPConfigured", "RDPFilename", "RemoteAssistance", "ResetPassword", "S3", "ScreenConnect", "ScreenHero", "SecureCRT", "Serial", "SessionTool" , "Sheet" , "SkyDrive", "SNMPReport"),"Spiceworks", "Splunk", "SSHShell", "SSHTunnel", "Sync", "TeamViewer", "TeamViewerConsole", "Telnet",""TemplateGroup", "TerminalConsole", "VirtualBox", "VirtualPC", "VMRC", "VMWare", "VMWareConsole", "VNC", "VPN", "Wayk", "WebBrowser", , "WebDav", "WindowsVirtualPC", "XenServer", "XWindow"

 

  <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 New-RDMSession -detailed". For technical information, type "Get-Help New-RDMSession -full".

 

EXAMPLE 1

PS C:\> $session = New-RDMSession -Name "New Session" -Host "myServer" -Type "RDPConfigured";Set-RDMSession $session

 

Create & save new session.

 

RELATED LINKS

Get-RDMDataSource

Remove-RDMSession

Set-RDMDataSource

Set-RDMSession