Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

Cisco Employee

TEO 2.3 and Powershell remote execution error

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.

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

TEO 2.3 and Powershell remote execution error

This was fixed in HF3 for 2.3.0. Please install it to fix this issue.

-shaun

--Shaun Roberts shaurobe@cisco.com CIAC Adoption Pilot Engineering Lead
4 REPLIES
Cisco Employee

TEO 2.3 and Powershell remote execution error

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

shaurobe@cisco.com

--Shaun Roberts shaurobe@cisco.com CIAC Adoption Pilot Engineering Lead
Cisco Employee

Re: TEO 2.3 and Powershell remote execution error

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.

Cisco Employee

TEO 2.3 and Powershell remote execution error

This was fixed in HF3 for 2.3.0. Please install it to fix this issue.

-shaun

--Shaun Roberts shaurobe@cisco.com CIAC Adoption Pilot Engineering Lead
Cisco Employee

TEO 2.3 and Powershell remote execution error

Hi Shaun,

Yes, the HF3 fixed the problem. Thanks for your help!!

Thanks,

Rishikesh R.

456
Views
0
Helpful
4
Replies