Author | Friedrich Weinmann (@FredWeinmann) |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Reset-DbatoolsConfig on GitHub.
Want to see the Bill Of Health for this command? Check out Reset-DbatoolsConfig.
Reverts a configuration item to its default value.
This command can be used to revert a configuration item to the value it was initialized with. Generally, this amounts to reverting it to its default value.
In order for a reset to be possible, two conditions must be met:
Reset-DbatoolsConfig
[-ConfigurationItem <Config[]>]
[-FullName <String[]>]
[-EnableException]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Reset-DbatoolsConfig -Module <String>
[-Name <String>]
[-EnableException]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
PS C:\> Reset-DbatoolsConfig -Module MyModule
Resets all configuration items of the MyModule to default.
PS C:\> Get-DbatoolsConfig | Reset-DbatoolsConfig
Resets ALL configuration items to default.
PS C:\> Reset-DbatoolsConfig -FullName MyModule.Group.Setting1
Resets the configuration item named 'MyModule.Group.Setting1'.
The name of the module, from which configurations should be reset.
Used in conjunction with the -Name parameter to filter a specific set of items.
Alias | |
Required | True |
Pipeline | false |
Default Value |
A configuration object as returned by Get-DbatoolsConfig.
Alias | |
Required | False |
Pipeline | true (ByValue) |
Default Value |
The full name of the setting to reset, offering the maximum of precision.
Alias | |
Required | False |
Pipeline | true (ByValue) |
Default Value |
Used in conjunction with the -Module parameter to select which settings to reset using wildcard comparison.
Alias | |
Required | False |
Pipeline | false |
Default Value | * |
This parameters disables user-friendly warnings and enables the throwing of exceptions.
This is less user friendly, but allows catching exceptions in calling scripts.
Alias | |
Required | False |
Pipeline | false |
Default Value | False |
If this switch is enabled, no actions are performed but informational messages will be displayed that explain what would happen if the command were to run.
Alias | wi |
Required | False |
Pipeline | false |
Default Value |
If this switch is enabled, you will be prompted for confirmation before executing any operations that change state.
Alias | cf |
Required | False |
Pipeline | false |
Default Value |