Service Settings¶
Cmdlets for viewing and modifying JIM runtime configuration. Settings use dot-notation keys and control operational behaviour such as change tracking, sync page sizes, and history retention.
Info
Setting values are always transmitted as strings. The server interprets the type based on the setting definition (Boolean, Integer, TimeSpan, etc.).
Get-JIMServiceSetting¶
Retrieves service settings. When called without parameters, returns all settings. Specify -Key to retrieve a single setting by its dot-notation key.
Syntax¶
Parameters¶
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Key |
string |
Yes (ByKey) | The key of the one setting to return, such as "ChangeTracking.CsoChanges.Enabled". Can be given by position, as the first argument. |
Output¶
Each service setting, with its default, its stored value and the value in effect.
| Property | Type | Description |
|---|---|---|
Key |
string |
Unique setting key using dot notation (e.g., "ChangeTracking.CsoChanges.Enabled"). |
DisplayName |
string |
Human-readable display name. |
Description |
string |
Description of what this setting controls. |
Category |
string |
Category for grouping (e.g., "SSO", "Synchronisation", "Maintenance"). |
ValueType |
string |
Data type of the setting value (e.g., "String", "Boolean", "Integer"). |
DefaultValue |
string |
The default value as a string. |
Value |
string |
The current overridden value, or empty if using the default. |
EffectiveValue |
string |
The effective value (Value if set, otherwise DefaultValue). |
IsReadOnly |
bool |
Whether this setting is read-only (e.g., mirrored from environment variables). |
IsOverridden |
bool |
Whether the current value differs from the default. |
Examples¶
Get-JIMServiceSetting -Key "Sync.PostClearReconciliation.MaxMissingPercent"
Set-JIMServiceSetting¶
Updates a service setting value. Read-only settings cannot be modified; attempting to do so produces a non-terminating error. Each change creates an audit activity. Supports ShouldProcess; use -WhatIf or -Confirm to preview or confirm the operation.
Syntax¶
Set-JIMServiceSetting [-Key] <string> [-Value] <string> [-ChangeReason <string>] [-PassThru] [-WhatIf] [-Confirm]
Parameters¶
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Key |
string |
Yes | The key of the setting to change, such as "ChangeTracking.CsoChanges.Enabled". Can be given by position, as the first argument. | |
Value |
string |
Yes | The new value, as a string. Can be given by position, as the second argument. | |
ChangeReason |
string |
No | Optional reason for the change, recorded on the audit Activity and shown in the setting's Configuration Change History. | |
PassThru |
switch |
No | Returns the setting as updated. |
Output¶
With -PassThru, the setting as updated; otherwise nothing.
Properties as under Get-JIMServiceSetting.
Examples¶
Set-JIMServiceSetting -Key "ChangeTracking.CsoChanges.Enabled" -Value "false"
Set-JIMServiceSetting -Key "History.RetentionPeriod" -Value "90.00:00:00" -PassThru
Set-JIMServiceSetting -Key "Sync.PostClearReconciliation.MaxMissingPercent" -Value "50"
Notes¶
- The
Valueparameter is always a string. The server interprets the type based on the setting definition (Boolean, Integer, TimeSpan, etc.). - Read-only settings throw a non-terminating error when modification is attempted.
- Each successful update creates an audit activity recording the previous and new values.
Reset-JIMServiceSetting¶
Reverts a service setting to its default value by clearing the administrator override. Read-only settings cannot be reverted; attempting to do so produces a non-terminating error. Each reset creates an audit activity. Supports ShouldProcess (Medium impact); use -WhatIf or -Confirm to preview or confirm the operation.
Syntax¶
Parameters¶
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Key |
string |
Yes | The key of the setting to revert, such as "ChangeTracking.CsoChanges.Enabled". Can be given by position, as the first argument. Accepts pipeline input by property name. | |
ChangeReason |
string |
No | Optional reason for the revert, recorded on the audit Activity and shown in the setting's Configuration Change History. | |
PassThru |
switch |
No | Returns the setting as reverted. |
Output¶
With -PassThru, the setting as reverted; otherwise nothing.
Properties as under Get-JIMServiceSetting.
Examples¶
Get-JIMServiceSetting | Where-Object { $_.IsOverridden } |
Reset-JIMServiceSetting
Notes¶
- Resetting clears the stored override; the
EffectiveValuereverts to the setting's built-in default. - Each successful reset creates an audit activity recording the change.
- Read-only settings throw a non-terminating error when a reset is attempted.
See also¶
- Service Settings: what service settings are, default vs override behaviour, and read-only environment-mirrored settings
- Activities: viewing audit activities created by setting changes
- Connection: establishing and managing connections to JIM