Thor Logo dbatools

Set-DbatoolsConfig

View Source
Friedrich Weinmann (@FredWeinmann)
Windows, Linux, macOS

Synopsis

Sets configuration entries.

Description

This function creates or changes configuration values. These can be used to provide dynamic configuration information outside the PowerShell variable system.

Syntax

Set-DbatoolsConfig -FullName <String>
    [-Value <Object>]
    [-Description <String>]
    [-Validation <String>]
    [-Handler <ScriptBlock>]           
    [-Hidden]
    [-Default]
    [-Initialize]
    [-DisableValidation]
    [-DisableHandler]
    [-EnableException]
    [-SimpleExport]
    [-ModuleExport]           
    [-PassThru]
    [-AllowDelete]
    [<CommonParameters>]            

Set-DbatoolsConfig -FullName <String>
    [-Description <String>]
    [-Validation <String>]
    [-Handler <ScriptBlock>]
    [-Hidden]           
    [-Default]
    [-Initialize]
    [-DisableValidation]
    [-DisableHandler]
    [-EnableException]
    -PersistedValue <String>
    [-PersistedType            <ConfigurationValueType>]
    [-SimpleExport]
    [-ModuleExport]
    [-PassThru]
    [-AllowDelete]
    [<CommonParameters>]            

Set-DbatoolsConfig -Name <String>
    [-Module <String>]
    [-Value <Object>]
    [-Description <String>]
    [-Validation <String>]
    [-Handler            <ScriptBlock>]
    [-Hidden]
    [-Default]
    [-Initialize]
    [-DisableValidation]
    [-DisableHandler]
    [-EnableException]
    [-SimpleExport]           
    [-ModuleExport]
    [-PassThru]
    [-AllowDelete]
    [<CommonParameters>]

 

Examples

 

Example 1: Simple
        C:\PS> Set-DbatoolsConfig -FullName Path.DbatoolsData -Value E:\temp\dbatools<br>
        Updates the configuration entry for Path.DbatoolsData to E:\temp\dbatools<br>

Required Parameters

-FullName
PropertyValue
Alias
RequiredTrue
Pipelinefalse
Default Value
-Name
PropertyValue
Alias
RequiredTrue
Pipelinefalse
Default Value
-PersistedValue
PropertyValue
Alias
RequiredTrue
Pipelinefalse
Default Value

Optional Parameters

-Default
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-Description
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-DisableHandler
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-DisableValidation
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-EnableException
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-Handler
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-Hidden
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-Initialize
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-Module
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-ModuleExport
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-PassThru
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-PersistedType
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-Register
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-SimpleExport
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-Validation
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value
-Value
PropertyValue
Alias
RequiredFalse
Pipelinefalse
Default Value