May 29, 2012 at 1:54 AM
Edited May 30, 2012 at 2:32 AM
*** updated 29 May ***
I have a client who I am building a site, and I just need to be able to run two powershell scripts for creating new sites (jobs for them) that enables the publishing feature and builds a specific folder structure.
I have gotten the script working so that it can be ran from powershell or SharePoint Mngt shell, however I cannot get the damn thing to run!
Everytime I run the workflow (it prompts for a couple things) I only get a permission denied for the domain administrator (the account I am logged in under). I have add-spshelladmin for every service account, along with admin of corse, have ensured
that the script is readable by all, turned off UAC but still cant get the damn thing to run!
The error reported by the workflow is
|Error while executing PowerShell Script: You need to have Farm administrator priviliges to run this cmdlet.
I have checked the Event Viewer and the ULS logs for clues and cant find anything that I would think related.
***** addendum ****
I have also successfully ran my library/folder creation script with my app pool account. along with added network service and local serice via add-spshelladmin. All the above accounts are also members of wss_admin_wpg.
If not via powershell, does anyone have any ideas on something that can create a picture library and folder structure either through a workflow or somthing that can be kicked off via workflow (or ilovesharepoint advanced workflow actions!) ?
Crying aside, beautiful solution! the site creation action works beautifully for me!