Configurations

Minimum Configuration

At a minimum chocolatey configuration configurations have 3 required parameters. ConfigName, Value and Ensure. ConfigName is the Chocolatey configuration name you wish to process, Value is the configuration value you want set and Ensure is the state at which you want that configuration option to be.

@{
    "webRequestTimeoutSeconds" = @{
        ConfigName = "webRequestTimeoutSeconds"
        Ensure     = 'Present'
        Value      = 30
    }

    "proxy"                    = @{
        ConfigName = "proxy"
        Ensure     = 'Absent'
    }
}

Last updated

Was this helpful?