Finding GUID of any SCSM template
This example demonstrates how to find the GUID of any SCSM template. This is a one liner code but very important in certain cases. GUID is a unique value assigned to each SCSM template for better administration:
Get-SCSMObjectTemplate | Where-Object {$_.DisplayName -eq "Display Name of SCSM Template from Console"} | select Id
The preceding command statement will give you an ID that represents the SCSM template uniquely. You can use this information to retrieve or assign this template for further operations.