I might have a silly question here...
When I manually start cmd and run my powershell script to get all installed office apps then the script runs fine and my result is shown.
When I do exactly the same process via Ranorex it fails every time!
What am I missing here, what am I doing wrong?
tnx!
Running powershell script in commandline
Running powershell script in commandline
You do not have the required permissions to view the files attached to this post.
Re: Running powershell script in commandline
Hi,
Unfortunately, it's hard to tell what's wrong, without seeing the ps1 file. Have you tried to create a batch file, which will execute the powershell commands (instead of typing the commands to cmd window)? Also, are you running the test/Ranorex Studio as admin or non-admin?
Unfortunately, it's hard to tell what's wrong, without seeing the ps1 file. Have you tried to create a batch file, which will execute the powershell commands (instead of typing the commands to cmd window)? Also, are you running the test/Ranorex Studio as admin or non-admin?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Running powershell script in commandline
Instead of starting the script with the Action 'run application' I decided to start up my Windows explorer and simply double click the file there... it's a little bit of more steps, but it's working fine
Re: Running powershell script in commandline
this drove me nuts for a while until I found this in the weeds of stackoverflow:
https://stackoverflow.com/questions/131 ... om-c-sharp
https://stackoverflow.com/questions/131 ... om-c-sharp
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted