Modifies an existing AppSetting. Only the properties you specify are changed.
Syntax
# Via pipeline / entity object
Set-LiquitAppSetting [-AppSetting] <AppSetting> [-Name <string>] [-Enabled <bool>] [-WhatIf] [-Confirm]
# Via GUID
Set-LiquitAppSetting [-ID] <Guid> [-Name <string>] [-Enabled <bool>] [-WhatIf] [-Confirm]
Parameters
| Parameter | Type | Position | Mandatory | Pipeline | Description |
|---|---|---|---|---|---|
AppSetting |
AppSetting |
0 | Yes (set byParentEntity) |
Yes (ByValue) | The AppSetting object to modify. |
ID |
Guid |
0 | Yes (set byParentId) |
Yes (ByValue) | ID of the AppSetting to modify. |
Name |
string |
— | No | No | New display name. |
Enabled |
bool |
— | No | No | New enabled state. |
If no modifiable parameter (
Name,Enabled) is provided, the cmdlet does nothing and returns no output.
Output: AppSetting
Supports: -WhatIf, -Confirm
Examples
# Rename via pipeline
Get-LiquitAppSetting -Name 'Outlook Settings' | Set-LiquitAppSetting -Name 'Outlook 365'
# Disable by ID
Set-LiquitAppSetting -ID 'a1b2c3d4-...' -Enabled $false
# Rename and enable in one call
Set-LiquitAppSetting -AppSetting $setting -Name 'Office Suite' -Enabled $true