You might have had this earlier: editing an application in SCCM 2012, the SCCM console crashes. And when you want to continue, you get the error: The following objects are not available and will not be edited.
In this article, I will describe 2 solutions.
Via PowerShell
- The easiest way is via PowerShell. In the SCCM Console, start PowerShell:
- Give the following command:
Unlock-CMObject -InputObject $(Get-CMApplication -Name Microsoft_CPlusPlusRuntimes_1.0.1_ENG_WIN7_P1)
There is no feedback, but you can edit the application again.
Via SQL Server Management Studio
An alternative way is via SQL Server Management Studio.
- Start SQL Server Management Studio
- Create a new query. And connect to the correct database.
- Give the following command:
SELECT * FROM SEDO_LockState WHERE LockStateID<>0
- There might be multiple lines, as multiple users may have various applications locked. Find the correct one. Copy the LockstateID.
- Give the following command:
DELETE FROM SEDO_LockState WHERE LockID = 'Copied LockstateID'
- And you can edit your application again.