I am creating a custom monitor and trying to find out if there is a way to elevate a session before executing a bit of code, and I don't have winRM installed.
Just wondering if something like this is possible or whether it will work
For example:
"
Start-Process PowerShell -Credential ${CREDENTIAL}
w32tm /query /computer:hostname /status
additional code here...
"