Applying SR template using Powershell
So with a bit of looking around, I have found various parts of scripts and ideas and come up with the below to apply a template as a run.net script action.
It all works fine until we have to get the SR to apply template, its returning a null value:
Get-SCSMObjectProjection : Cannot convert 'System.Object' to the type 'System.String' required by parameter 'ProjectionName'. Specified method is not supported.
I've tried several variations of the script and it always returns null at the get SR stage.
Really appreciate if anyone has any ideas?