Jun 24, 2011 at 7:29 AM
Edited Jun 27, 2011 at 8:08 AM
I tried running the script with both the farm admin account (system account) and with my account who is only administrator of the collection: I still get the same error. But if I disable the obligation to sign scripts on the server, then it's ok.
Though, I found another security problem, but I don't know if I must post it in another discussion (if yes just tell me):
- I have a script that tries to execute the Get-SPWebApplication applet, in order to check the existence of a URL on the farm.
- when I execute the script through the powershell console, in command-line, it's ok. I run it with an account who is farm administrator though.
- when I launch the script through my workflow, it says: "you must have farm administration rights in order to execute this applet".
||Error while executing PowerShell Script: Vous devez disposer des droits d’administrateur de batterie de serveurs pour exécuter cette applet de commande.
What I don't understand is which account is used here to execute the applet. I tried to launch the workflow with the farm admin account (system account), and with my account. I tried to add to the farm administrators group my account, and the account under
which the application pool of my webapp runs (the webapp where I launch the workflow), I still get the same message.
I noticed that the user account in the message is always system account, whatever user account I use to launch the workflow.
I also tried to execute the action in an impersonification step (emprunt d'identité in french, I don't know how to translate :) ), I still get the same message.
What am I doing wrong ?
Many thanks in advance, regards