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 Microsoft System Center 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.

Examples

Example 1: Get the report query result maximum

PS C:\> Get-CMQueryResultMaximum

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

Optional Parameters

-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