Unlock-CMObject
Unlock-CMObject
Releases locks to global objects in Configuration Manager.
Syntax
Parameter Set: ByValue
Unlock-CMObject [-InputObject] <IResultObject[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Unlock-CMObject cmdlet releases locks of one or more objects in Microsoft System Center 2012 SP1 Configuration Manager. You can use the InputObject parameter to specify the input to this cmdlet, or you can pipe the input to this cmdlet.
Serialized Editing of Distributed Objects (SEDO) in System Center 2012 Configuration Manager provide a mechanism for assigning and unassigning locks to global System Center 2012 Configuration Manager objects in the context of a site, computer and user. If you want to edit and save a SEDO-enabled object, you must lock the object. When you obtain the lock, the lock is assigned to you, your computer and the site in which the computer resides. While the lock is assigned to you, no other user or computer can edit the object until you release the lock.
Parameters
-InputObject<IResultObject[]>
Specifies an array of Configuration Manager objects output from another cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Unlock a global object
The first command gets the driver package object that has the ID CM100042, and stores the object in the $CIObj variable.
The second command releases the lock the object in $CIObj.
PS C:\> $CIObj = Get-CMDriverPackage -Id "CM100042"
PS C:\> Lock-CMObject $CIObj