web analytics

Blog

How to query a SEDO-Enabled Lock information

Posted by:

To query a SEDO-Enabled Lock information

  1. Set up a connection to the Root\SMS namespace
  2. Query the GetLockInformation Method parameters from SMS_ObjectLock WMI class
  3. Set the ObjectRelPath property

Examples

Example Output

You can download the code examples from here



About the Author:

Kaido Järvemets is a developer, consultant, trainer specializing in Microsoft System Center Configuration Manager and PowerShell Solutions at Coretech. Kaido frequently speaks at European conferences and had his US debut as speaker at MMS April 2013. Kaido is well-known in the Configuration Manager communities where he’s a key player in the PowerShell game. Kaido host one of the most complete Configuration Manager PowerShell library’s in the world with hundreds of free code samples ready to download and implement – www.cm12sdk.net. Kaido has been awarded Microsoft Most Valuable Professional (MVP) in Microsoft Enterprise Client Management for his work with Configuration Manager from 2011 – to present. Kaido is the founder of System Center User Group Estonia in 2011.

Discussion

  1. David Baur  May 1, 2013

    This fails every time I run it with “Generic Failure” on SCCM 2012 Sp1+Cu1…
    It says
    “Exception calling “InvokeMethod” with 3 Arguments: “Generic Failure”

    (reply)
    • admin  May 2, 2013

      Hi,

      It works in my lab(CM12 SP1 + CU1). You need to modify the site server and the site code and you need to know the object RELPATH.

      Best,
      Kaido

      (reply)

Add a Comment