Getting any SCSM entity by Guid
One of our customers requested a tool to get any SCSM entity by Guid. I didn’t know such a tool and decided to make that one.
Firstly, I wanted to develop a Visual Studio solution but then turned to the PowerShell script as much easier customizable. Just after the beginning, I realized that I would hardly query each and every SCSM type but the most used by my team and me. If anyone needs to add more SCSM entity types, it is easy to accomplish slightly modifying my PS code. As usual, I relied on SMLets so it’s required to run the script.
The solution supports the following SCSM entity types:
- Class instance
- Relationship Class
- Relationship Instance
- Management Pack
- Type Projection
The script has two parameters. The first one is Guid (mandatory) and the second is a server name (optional) for a remote connection.
If you use only the first parameter, the script tries to connect to the local host and should be used on the SCSM management server.
Please feel free to edit the script to add a support for additional types and have a nice day!!!