Set the data source loaded when the application starts
Set-RDMDefaultDataSource [[-Name] <string>] [[-OnStartUpOption] <string>] [-CaseSensitive]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
Set-RDMDefaultDataSource [-ID] <guid> [[-OnStartUpOption] <string>]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]
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.
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.
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.
Case sensitive search of the data source
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Name
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
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
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
ID of the data source to set as default or last used
Type: System.Guid
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Id
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
Name of the data source to set as default or last used
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Name
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
Option to determine which data source to open when the applications starts
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
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.
For more information, type "Get-Help Set-RDMDefaultDataSource -detailed". For technical information, type "Get-Help Set-RDMDefaultDataSource -full".