Event Broker PowerShell Script activity not seeing drive E:

Carol Wapshere 5 years ago • updated by anonymous 3 years ago 7

Customer reported he was unable to run PowerShell scripts from Event Broker. We tried both the PowerShell Script and PowerShell Execute activities and the error was always along the lines of "file not found".

Initially he had the script in the root of drive E:. I had him move it to E:\test but EB still couldn't find it. Then we tried drive C: and this time EB found the script and ran it correctly.

As the customer is using Win 2012 and IIS 8 there is perhaps a compatibility issue?

Tony, I gather you were already helping Victor with his EB questions so I'm passing this to you as starting point. I sorted out his EB roles issue - it was just that you need to give all your users the "User" role in addition to any elevated roles in the EB config file, and this wasn't done. This powershell problem is weird however, never seen it before.

Hi Carol,

IIS8 shouldn't be a factor, and we've run scripts with Server 2012 before. We have discovered some differences (noted here: EB-541) but they're environmental. The scripts are executed with the service account, does it have appropriate rights to the drive/directories/files?

Regarding your latest comment, is this EB roles issue you're talking about separate? If so when you say "all your users" are you referring to the Event Broker console users?

The roles issue is separate and, I believe, resolved - I just mentioned it in case this environmental issue is a factor.

Yes I asked about the perms of the EB service account - it's a Domain Admin! I did express a few opinions about that...

Just to be sure I got him to runas powershell using the EB service account and manually run the script from drive E:. Worked fine.

I also checked the execution policy.

Any update on this issue yet or can it be closed?

Was actually a VMWare issue;

1. On the VMWARE side of things apply the following to enable permissions on other drives: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1012225