Update-SCSMSetting
Updates the configuration settings for Service Manager.
Syntax
Update-SCSMSetting
[-Setting] <ISetting[]>
[-PassThru]
[-WhatIf]
[-Confirm]
[<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: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | 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: | System.Management.Automation.SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Setting
Specifies an object which contains the updated settings for Service Manager.
Type: | Microsoft.EnterpriseManagement.ServiceManager.Sdk.Settings.ISetting[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | 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.