I’m trying to execute a REST call from PowerShell to run a SCOM Recovery Task.

I’ve read as much of the REST API documentation and other forums that I could find on this particular subject and I feel like I’m close to a working script, but I keep stumbling at the same point.



I’m new to SCOM, but familiar with PowerShell, so I’ve learned some commands along the way to identify the ID values I am using in SCOM.

I’ve tried different values from other tasks, but keep getting the error.

Has anyone ever tried doing things this way? I am aware of other methods, but I’m testing this approach for a particular task (a small component to a larger project).

Any assistance is greatly appreciated, as I’ve been staring at the same code for far too long and I’m probably looking right at the issue and just can’t see it.

EDIT: Formatting

chris737 edited question