New-RoyalObject |
![]() |
New-RoyalObject
Creates a new RoyalObject.
New-RoyalObject [-Folder] <RoyalFolder> [[-Type] <RoyalObjectType>] [[-TypeString] <string>] [-Name] <string[]>
[[-Description] <string>] [<CommonParameters>]
RoyalStore is the base class for all connections in Royal TS. Use this cmdlet to create Remote Desktop Connections,
Web Pages etc.
-Folder <RoyalFolder>
The Folder or Document where the new RoyalObject should be stored.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Type <RoyalObjectType>
Required? false
Position? 1
Default value 0
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-TypeString <string>
Specifies which type is created by using a string.
The following types are allowed: RoyalCredential, RoyalFolder, RoyalRDSConnection, RoyalWebConnection,
RoyalAppConnection, RoyalHyperVConnection, RoyalManagementEndpoint, RoyalPerformanceConnection,
RoyalSSHConnection, RoyalTerminalServicesConnection, RoyalVNCConnection, RoyalWindowsEventsConnection,
RoyalWindowsProcessesConnection and RoyalWindowsServicesConnection
Required? false
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Name <string[]>
The name of the new RoyalObject.
Required? true
Position? 3
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Description <string>
The description of the new RoyalObject.
Required? false
Position? 4
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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 (http://go.microsoft.com/fwlink/?LinkID=113216).
RoyalDocumentLibrary.RoyalFolder
The Folder or Document where the new RoyalObject should be stored.
RoyalDocument.PowerShell.RoyalObjectType
System.String
Specifies which type is created by using a string.
The following types are allowed: RoyalCredential, RoyalFolder, RoyalRDSConnection, RoyalWebConnection,
RoyalAppConnection, RoyalHyperVConnection, RoyalManagementEndpoint, RoyalPerformanceConnection,
RoyalSSHConnection, RoyalTerminalServicesConnection, RoyalVNCConnection, RoyalWindowsEventsConnection,
RoyalWindowsProcessesConnection and RoyalWindowsServicesConnection
System.String[]
The name of the new RoyalObject.
---------- EXAMPLE 1 ----------
$cred = New-RoyalObject -folder $doc -Type RoyalCredential -Name "some name" -Description "some description"
The variable $doc is a RoyalDocument created with the New-RoyalDocument cmdlet.