Set-RDMDefaultDataSource

Synopsis

Set the workspace 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>]

Description

Set the workspace loaded when the application starts. It is possible to modify the 'On start up' option to choose how the loaded workspace is chosen. The choices are: LastUsed, Prompt, and UseDefault. Modifying this option will not alter the current default or last used workspace. To change the workspace loaded on the next application start, the parameter ID or Name must be used. This will modify the last used or default workspace to load.

Examples

Example 1

PS C:\> Set-RDMDefaultDataSource -Name MyDefaultDS -OnStartUpOption UseDefault

Set the workspace 'MyDefaultDS' as the default one that will be loaded on every application starts.

Example 2

PS C:\> Set-RDMDefaultDataSource -Name MyDefaultDs -CaseSensitive

Set the workspace 'MyDefaultDs' as the default or last used workspace. The search for the workspace is case sensitive.

Parameters

-CaseSensitive

Case sensitive search of the workspace

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: ''

-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 no "No" option.

  • Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.

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

ID of the workspace 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

Name of the workspace 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: ''

-OnStartUpOption

Option to determine which workspace 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: ''

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.

Notes

For more information, type "Get-Help Set-RDMDefaultDataSource -detailed". For technical information, type "Get-Help Set-RDMDefaultDataSource -full".

Devolutions Forum logo Share your feedback