Copy-RDMDataSource
2024-10-28
Copy-RDMDataSource
SYNOPSIS
Copy an existing data source
SYNTAX
Id
Copy-RDMDataSource [-ID] <guid> [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
InputObject
Copy-RDMDataSource [-InputObject] <PSDataSource> [-ForcePromptAnswer <DialogResult[]>]
[<CommonParameters>]
ALIASES
This cmdlet has the following aliases,
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
EXAMPLE
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
-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 not an option No.
- Cancel: Cancel the yes/no/cancel prompt. No is the fallback option if there is not an option Cancel.
Type: System.Windows.Forms.DialogResult[]
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ID
ID of the data source to copy
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: Id
Position: 1
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
ParameterValue: []
Aliases: []
ParameterSets:
- Name: InputObject
Position: 1
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.
OUTPUTS
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSDataSource
NOTES
For more information, type "Get-Help Copy-RDMDataSource -detailed". For technical information, type "Get-Help Copy-RDMDataSource -full".