07-06-2012 01:53 AM
Hi,
I am running into errors when trying to run powershell scripts on a remote target. I have tried the following things so far using just "get-date" as a command in the script.
1. Set remote execution policy to unrestricted.
2. Enable the checkbox for accessing remote resources.
And after setting the above, I get the following error.
Exception has been thrown by the target of an invocation.
Access is denied.
Now, if I try using the Run Windows Command activity, I am able to run the required commands on the remote target, but powershell script activity fails for the same target.
Surprisingly, this works fine on TEO2.2
Thanks,
Rishikesh R.
Solved! Go to Solution.
08-24-2012 12:27 PM
This was fixed in HF3 for 2.3.0. Please install it to fix this issue.
-shaun
07-06-2012 04:02 AM
For #2, why did you enable that? This means you need to enable remote resources, like a remote shared drive or something like that. So you make a double hop(in Microsoft terms). You hop once to your target and once again to your remote shared drive. WMI does not allow this for security policy reasons so we have to do something else when you select that.
Try unchecking it and running it and see if that helps. If not, open a TAC case and someone from support can assist you.
-shaun roberts
CPO/CIAC Support Team Lead
07-06-2012 04:10 AM
Shaun,
Thanks for your response. I tried the workflow without checking that too. But since it didnt work, I assumed that perhaps that checkbox enables running powershell scripts on remote targets too, I wasn't aware that the implications for that checkbox relate to other shared resources.
I just tried running the Get-Date command without the option for remote resources and it failed again.
Let me reach out to TAC.
Thanks,
Rishikesh R.
08-24-2012 12:27 PM
This was fixed in HF3 for 2.3.0. Please install it to fix this issue.
-shaun
08-24-2012 12:30 PM
Hi Shaun,
Yes, the HF3 fixed the problem. Thanks for your help!!
Thanks,
Rishikesh R.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide