I've created a Datasource to Monitor Windows Service on machine and try to restart it using Powershell.
But, i want it to run only if the Machine/Instance is not under SDT.
How can i write it the code?
How can i get the SDT status from LM via powershell.