cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1437
Views
0
Helpful
4
Replies

TEO 2.3 and Powershell remote execution error

Rishikesh Radhakrishnan
Cisco Employee
Cisco Employee

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.

1 Accepted Solution

Accepted Solutions

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

-shaun

--Shaun Roberts
Principal Engineer, CX
shaurobe@cisco.com

View solution in original post

4 Replies 4

Shaun Roberts
Cisco Employee
Cisco Employee

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
Principal Engineer, CX
shaurobe@cisco.com

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.

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

-shaun

--Shaun Roberts
Principal Engineer, CX
shaurobe@cisco.com

Hi Shaun,

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

Thanks,

Rishikesh R.

Review Cisco Networking for a $25 gift card