66945 Posted April 4, 2017 Report post Posted April 4, 2017 Hi, My console crashed and I'm trying to unlock the locked object (a task sequence). I tried using the Unlock-Object cmdlet in PowerShell but it fails with this error: Unlock-CMObject -InputObject $(Get-CMTaskSequence -Name Test) Unlock-CMObject : Cannot unlock object. Object context '874f0b81-e922-4ebe-94a5-3c3bfaeba50d' is different than the current session context '7eead30c-5325-4087-9c20-8f0396c0c3ec'. At line:1 char:1 + Unlock-CMObject -InputObject $(Get-CMTaskSequence -Name Test) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (Microsoft.Confi...ckObjectCommand:UnlockObjectCommand) [Unlock-CMObject], SmsException + FullyQualifiedErrorId : ObjectLocked,Microsoft.ConfigurationManagement.Cmdlets.Common.Utility.UnlockObjectCommand How can I target the 'correct session context'? I only have 1 Primary Site and the PowerShell session is connected to that Primary Site. Quote Share this post Link to post Share on other sites More sharing options...