Invoke-CMReport

Invokes a report about data and operations in Configuration Manager.

Syntax

Invoke-CMReport
      [-SiteCode <String>]
      [-SrsServerName <String>]
      -ReportPath <String>
      [-ReportParameter <Hashtable>]
      [-OutputFormat <String>]
      [-PassThru]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Invoke-CMReport cmdlet invokes a Microsoft SQL Server Reporting Services report that displays information about data and operations in Microsoft System Center Configuration Manager. The reporting services point is a site system role that you install on a server that runs Microsoft SQL Server Reporting Services.

Examples

Example 1: Invoke a report

PS C:\>Invoke-CMReport -ReportPath "/Reports/Data" -SiteCode "CM4"

This command invokes a report by using a report path and a site code.

Required Parameters

-ReportPath

Specifies the path to a folder where reports are stored.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

Specifies an output format in Configuration Manager.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns the current working object. By default, this cmdlet does not generate any output.

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

Specifies report parameters as key-value pairs.

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteCode

Specifies a site code in Configuration Manager.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SrsServerName

Specifies a name of a Microsoft SQL Server Reporting Services server.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

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