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
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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