Get-CMObjectLockDetails

Gets object lock details.

Syntax

Get-CMObjectLockDetails
   [-InputObject] <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMObjectLockDetails cmdlet gets the object lock details for an object.

Examples

Example 1: Get object lock details by passing an application object through the pipeline

PS ABC:\> Get-CMApplication -Name "Application01" | Get-CMObjectLockDetails

This command gets the application object named Application01 and uses the pipeline operator to pass the object to Get-CMObjectLockDetails, which gets the object lock details for the application.

Example 2: Get object lock details by getting an application object

PS ABC:\> $AppObject = Get-CMApplication -Name "testApp"
PS ABC:\> Get-CMObjectLockDetails -InputObject $AppObject

The first command gets the application object named testApp and stores the object in the $AppObject variable.

The second object gets the object lock details for the application stored in $AppObject.

Required Parameters

-InputObject

Specifies a Configuration Manager object output from another cmdlet.

Type:IResultObject
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

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