Set-RDMDefaultDataSource
2025-01-21
Set-RDMDefaultDataSource
SYNOPSIS
Set the data source loaded when the application starts
SYNTAX
Name (Default)
Set-RDMDefaultDataSource [[-Name] <string>] [[-OnStartUpOption] <string>] [-CaseSensitive]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
Id
Set-RDMDefaultDataSource [-ID] <guid> [[-OnStartUpOption] <string>]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
ALIASES
This cmdlet has the following aliases,
DESCRIPTION
Set the data source loaded when the application starts. It is possible to modify the 'On start up' option to choose how the loaded data source is chosen. The choices are: LastUsed, Prompt, and UseDefault. Modifying this option will not alter the current default or last used data source. To change the data source loaded on the next application start, the parameter ID or Name must be used. This will modify the last used or default data source to load.
EXAMPLES
EXAMPLE 1
PS C:> Set-RDMDefaultDataSource -Name MyDefaultDS -OnStartUpOption UseDefault
Set the data source 'MyDefaultDS' as the default one that will be loaded on every application starts.
EXAMPLE 2
PS C:> Set-RDMDefaultDataSource -Name MyDefaultDs -CaseSensitive
Set the data source 'MyDefaultDs' as the default or last used data source. The search for the data source is case sensitive.
PARAMETERS
-CaseSensitive
Case sensitive search of the data source
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: Name
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-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 set as default or last used
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: ''
-Name
Name of the data source to set as default or last used
Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: Name
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-OnStartUpOption
Option to determine which data source to open when the applications starts
Type: System.String
DefaultValue: ''
SupportsWildcards: false
ParameterValue: []
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
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
OUTPUTS
NOTES
For more information, type "Get-Help Set-RDMDefaultDataSource -detailed". For technical information, type "Get-Help Set-RDMDefaultDataSource -full".