Quick question.
I have a powershell script that looks at sites to identify when they have been created and then creates some security groups and locks down lists. I want to automate this via task scheduler. I know the script runs perfect when i run it manually but when i automate it just says task triggered by user but i can confirm that the script behaviour is not complete.
What could cause this?
Also in automating this you have to select the program which is powershell but the script needs to be run via the management shell for sharepoint. Does this mean you need to add something extra to load the add in?
Things i've tested:
set the script location to accept unsigned scripts for testing.
tried the 32 and 64 bit locations of powershell as the program.