Over the weekend, I’ve been trying to call Powershell scripts using vRealize Orchestrator.
Quick google yielded the following:
I’ve followed the blog and was able to successfully call the script WITH one exception: every time i started calling resource outside of the WINRM host from the ps script – it kept on failing. One example is – Adding DNS which required to call the Domain controller.
Another google and found this AWESOME article from Spas:
Basically, you need to use CredSSP to impersonate calls. Since vRO, currently, does not support this – you need to configure the WinRM server to allow CredSSP/ Impersonation and call the script using CredSSP.
The following items needs to be enabled in the WinRM Host:
Go to gpedit.msc -> Choose Enabled for the items and add the following in the allowed servers: WSMAN/*.<your domain>