Update-SCSMSetting

Updates the configuration settings for Service Manager.

Syntax

Update-SCSMSetting [-Setting] <ISetting[]> [-Confirm] [-PassThru] [-WhatIf] [<CommonParameters>]

Description

The Update-SCSMSetting cmdlet updates the configuration settings for Service Manager.

Examples

Example 1: Update activity settings

PS C:\>$Setting = Get-SCSMSetting -DisplayName "Activity"
PS C:\> $Setting.ManualActivityPrefix = "MA_"
PS C:\> Update-SCSMSetting -Setting $Setting

The first command gets the activity settings for Service Manager by using the Get-SCSMSetting cmdlet. The command stores those settings in the $Setting variable.

The second command modifies the ManualActivityPrefix property of $Setting.

The final command updates the setting to have the current value of $Setting.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Indicates that this cmdlet returns the settings that it updates. You can pass this object to other cmdlets.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Setting

Specifies an object which contains the updated settings for Service Manager.

Type:ISetting[]
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.EnterpriseManagement.ServiceManager.Sdk.Settings.ISetting

You can pipe configuration settings to the *Settings* parameter. You can use the Get-SCSMSetting cmdlet to retrieve a settings object.

Outputs

None.

This cmdlet does not generate any output.