Set-CMStatusReportingComponent

Set-CMStatusReportingComponent

Sets an object representing a status reporting component.

Syntax

Parameter Set: SearchBySiteCodeMandatory
Set-CMStatusReportingComponent -SiteCode <String> [-ClientLogChecked <Boolean> ] [-ClientLogFailureChecked <Boolean> ] [-ClientLogType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ClientReportChecked <Boolean> ] [-ClientReportFailureChecked <Boolean> ] [-ClientReportType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ServerLogChecked <Boolean> ] [-ServerLogFailureChecked <Boolean> ] [-ServerLogType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ServerReportChecked <Boolean> ] [-ServerReportFailureChecked <Boolean> ] [-ServerReportType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Set-CMStatusReportingComponent -Name <String> [-ClientLogChecked <Boolean> ] [-ClientLogFailureChecked <Boolean> ] [-ClientLogType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ClientReportChecked <Boolean> ] [-ClientReportFailureChecked <Boolean> ] [-ClientReportType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ServerLogChecked <Boolean> ] [-ServerLogFailureChecked <Boolean> ] [-ServerLogType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ServerReportChecked <Boolean> ] [-ServerReportFailureChecked <Boolean> ] [-ServerReportType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Set-CMStatusReportingComponent -InputObject <IResultObject> [-ClientLogChecked <Boolean> ] [-ClientLogFailureChecked <Boolean> ] [-ClientLogType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ClientReportChecked <Boolean> ] [-ClientReportFailureChecked <Boolean> ] [-ClientReportType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ServerLogChecked <Boolean> ] [-ServerLogFailureChecked <Boolean> ] [-ServerLogType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-ServerReportChecked <Boolean> ] [-ServerReportFailureChecked <Boolean> ] [-ServerReportType <StatusReportOrLogType> {AllMilestones | AllMilestonesAndAllDetails | ErrorAndWarningMilestones | ErrorMilestones} ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-CMStatusReportingComponent cmdlet sets an object that represents a status reporting component. A status reporting component object specifies information about the client configuration and server configuration components.

You can configure the reporting component to check log files and monitor the severity of entries in the log files.

Parameters

-ClientLogChecked<Boolean>

Indicates whether a client log is checked.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ClientLogFailureChecked<Boolean>

Indicates whether a client log failure is checked.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ClientLogType<StatusReportOrLogType>

Specifies a type of client log. The acceptable values for this parameter are:

-- AllMilestones
-- AllMilestonesAndAllDetails
-- AllMilestonesAndAllDetails
-- ErrorMilestones

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ClientReportChecked<Boolean>

Indicates whether a client report is checked.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ClientReportFailureChecked<Boolean>

Indicates whether a client failure is checked.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ClientReportType<StatusReportOrLogType>

Specifies a type of report. The acceptable values for this parameter are:

-- AllMilestones
-- AllMilestonesAndAllDetails
-- ErrorAndWarningMilestones
-- ErrorMilestones

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

Specifies an object output from another cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies a name for a status reporting component in Configuration Manager.

Aliases

SiteName

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ServerLogChecked<Boolean>

Indicates whether a server log is checked.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ServerLogFailureChecked<Boolean>

Indicates whether a server log failure is checked.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ServerLogType<StatusReportOrLogType>

Specifies a server log type. The acceptable values for this parameter are:

-- AllMilestones
-- AllMilestonesAndAllDetails
-- ErrorAndWarningMilestones
-- ErrorMilestones

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ServerReportChecked<Boolean>

Indicates whether a server report is checked.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ServerReportFailureChecked<Boolean>

Indicates whether a server report failure is checked.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ServerReportType<StatusReportOrLogType>

Specifies a report type. The acceptable values for this parameter are:

-- AllMilestones
-- AllMilestonesAndAllDetails
-- ErrorAndWarningMilestones
-- ErrorMilestones

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SiteCode<String>

Specifies a site code for a Configuration Manager site.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Set status reporting component

This command sets a client report type and a server report type.

PS C:\> Set-CMStatusReportingComponent -SiteCode "CM1" -ClientReportType AllMilestones -ServerReportType AllMilestones

Get-CMStatusReportingComponent