>>>>>>>>>> Get-DefaultSetting <<<<<<<<<<
SYNOPSIS : Gets the default settings for a management group.
SYNTAX : Get-DefaultSetting [[-Path] [<String[]>]] [<CommonParameters>]
DETAILED DESCRIPTION : Gets the default settings for a management group.
PARAMETERS
-Path [<String[]>]
Specifies the path or set of paths to the management groups for which to retrieve default settings. To enter multiple values, separate them by using commas.
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".
>>>>>>>>>> Set-DefaultSetting <<<<<<<<<<
NAME : Set-DefaultSetting
SYNOPSIS : Sets default settings.
SYNTAX :
Set-DefaultSetting [-Name] <String> [-Value] <String> [[-Path] [<String[]>]] [-WhatIf] [-Confirm] [<CommonParameters>]
Set-DefaultSetting [-Setting] <DefaultSettingBase[]> [[-Path] [<String[]>]] [-WhatIf] [-Confirm] [<CommonParameters>]
DETAILED DESCRIPTION : Sets default settings.
PARAMETERS :
-Name <String>
Specifies the name of the default setting. The name is case-sensitive.
-Value <String>
Specifies the value of the default setting.
-Path [<String[]>]
Specifies the path or set of paths to the management groups to which to apply the default settings.
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
-Confirm
Prompts you for confirmation before executing the command.
-Setting <DefaultSettingBase[]>
Specifies a set of default setting objects.
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".
What are the different setting we can get and set :
- Agent\Heartbeats\Interval
- HealthService\ProxyingEnabled
- ManagementGroup\AlertCustomFieldSettings\CustomField1
- ManagementGroup\AlertCustomFieldSettings\CustomField10
- ManagementGroup\AlertCustomFieldSettings\CustomField2
- ManagementGroup\AlertCustomFieldSettings\CustomField3
- ManagementGroup\AlertCustomFieldSettings\CustomField4
- ManagementGroup\AlertCustomFieldSettings\CustomField5
- ManagementGroup\AlertCustomFieldSettings\CustomField6
- ManagementGroup\AlertCustomFieldSettings\CustomField7
- ManagementGroup\AlertCustomFieldSettings\CustomField8
- ManagementGroup\AlertCustomFieldSettings\CustomField9
- ManagementGroup\AlertResolution\AlertAutoResolveDays
- ManagementGroup\AlertResolution\HealthyAlertAutoResolveDays
- ManagementGroup\ClientMonitoringSettings\ErrorTransmissionFilters
- ManagementGroup\ClientMonitoringSettings\ExceptionFolders
- ManagementGroup\ClientMonitoringSettings\MaxNumberOfCabsToCollect
- ManagementGroup\ClientMonitoringSettings\PolicyResponseUrl
- ManagementGroup\ClientMonitoringSettings\PublishMicrosoftDataCollectionRequest
- ManagementGroup\ClientMonitoringSettings\PublishMicrosoftFileCollectionRequests
- ManagementGroup\ClientMonitoringSettings\PublishMicrosoftMemoryDumpRequests
- ManagementGroup\ClientMonitoringSettings\PublishMicrosoftRegistryCollectionRequests
- ManagementGroup\ClientMonitoringSettings\PublishMicrosoftSolutionLinks
- ManagementGroup\ClientMonitoringSettings\PublishMicrosoftSurveyLinks
- ManagementGroup\ClientMonitoringSettings\PublishMicrosoftWMIQueryRequests
- ManagementGroup\CustomerExperienceImprovementProgramEnabled
- ManagementGroup\DataWarehouse\DataWarehouseDatabaseName
- ManagementGroup\DataWarehouse\DataWarehouseServerName
- ManagementGroup\DataWarehouse\ReportingServerUrl
- ManagementGroup\ErrorReporting\QueueErrorReports
- ManagementGroup\ErrorReporting\SendErrorReports
- ManagementGroup\PartitioningAndGroomingSettings\AlertDaysToKeep
- ManagementGroup\PartitioningAndGroomingSettings\AvailabilityHistoryDaysToKeep
- ManagementGroup\PartitioningAndGroomingSettings\EventDaysToKeep
- ManagementGroup\PartitioningAndGroomingSettings\JobStatusDaysToKeep
- ManagementGroup\PartitioningAndGroomingSettings\MaintenanceModeHistoryDaysToKeep
- ManagementGroup\PartitioningAndGroomingSettings\MonitoringJobDaysToKeep
- ManagementGroup\PartitioningAndGroomingSettings\PerformanceDataDaysToKeep
- ManagementGroup\PartitioningAndGroomingSettings\PerformanceSignatureDaysToKeep
- ManagementGroup\PartitioningAndGroomingSettings\StateChangeEventDaysToKeep
- ManagementGroup\SendOperationalDataReports
- ManagementGroup\WebAddresses\OnlineProductKnowledge
- ManagementServer\AutoApproveManuallyInstalledAgents
- ManagementServer\MissingHeartbeatThreshold
- ManagementServer\ProxyAddress
- ManagementServer\ProxyPort
- ManagementServer\RejectManuallyInstalledAgents
- ManagementServer\UseProxyServer
- NotificationServer\WebAddresses\WebConsole
-------------- EXAMPLE 1 --------------
C:\PS>set-defaultsetting `
-name HealthService\ProxyingEnabled `
-value True
This command sets the default setting agent Proxying enabled to True. Be carefull, the name of the setting is case-sensitive.
-------------- EXAMPLE 2 --------------
C:\PS>get-defaultsetting
This command gets the default settings for all connected management groups.
This posting is provided "AS IS" with no warranties.
Great..!! It is working...! thanks for posting Tristan :-)
ReplyDelete