Get-CMQueryResultMaximum

Gets the maximum number of rows that a Configuration Manager report query can return.

Syntax

Get-CMQueryResultMaximum
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMQueryResultMaximum cmdlet gets the maximum number of rows that a Configuration Manager query can return. By default, queries in Configuration Manager return only a subset of the matching rows in the database. This cmdlet indicates the number of rows that Configuration Manager returns. To change the maximum number of rows that a Configuration Manager query returns, use the Set-CMQueryResultMaximum cmdlet. By default, the maximum number of rows is unbound, which is different from the behavior of the Configuration Manager console, and is also different from earlier releases of the Configuration Manager cmdlet library.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1: Get the report query result maximum

PS XYZ:\> Get-CMQueryResultMaximum

This command gets the maximum number of rows that a Configuration Manager report query can return.

Parameters

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

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

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

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

Inputs

None

Outputs

System.Int32