Copy-RDMDataSource

Synopsis

Copy an existing data source

Syntax

Id

Copy-RDMDataSource [-ID] <guid> [<CommonParameters>]

InputObject

Copy-RDMDataSource [-InputObject] <PSDataSource> [<CommonParameters>]

Description

Copy an existing data source. The user can be prompted if the data source requires an MFA. On a Windows OS, a policy can disable this cmdlet. In case of a SQL server with a custom login, it is possible to connect using different credentials.

Examples

PS C:\> Get-RDMDataSource -Name 'CustomSQL' | Copy-RDMDataSource | Set-RDMCurrentDataSource

Connect to a copy of the data source 'CustomSQL'. If the user is prompted for the credentials, different credentials can be entered.

Parameters

-ID

ID of the data source to copy

Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Id
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-InputObject

PSDataSource obtained from Get-RDMDataSource to copy

Type: RemoteDesktopManager.PowerShellModule.PSOutputObject.PSDataSource
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: InputObject
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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

RemoteDesktopManager.PowerShellModule.PSOutputObject.PSDataSource

Data source object to copy obtained from Get-RDMDataSource.

Notes

For more information, type "Get-Help Copy-RDMDataSource -detailed". For technical information, type "Get-Help Copy-RDMDataSource -full".

Devolutions Forum logo Give us Feedback