I been looking at the best way to run my powershell script to end users. If I try to copy the .ps1 file to the local c:\windows\system32 and schedule a task to run the script it fails on permissions. Yes even if I make sure I say run as Domain\Administrator…If I run powershell (run as Administrator) and run the script it works fine.
So now I decided perhaps I should just create a network share and allow the script to run there. Yes I set-executionpolicy unrestricted (just to quickly finish up this task and circle back and do it the right way) I still am unable to run the script…
After looking at Run Power Scritps from a Shared Directory http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/29/how-to-run-powershell-scripts-from-a-shared-directory.aspx I seem to be missing something since I do not see where in "In Group Policy Management Editor, you’ll find this policy setting under both the Computer Configuration and the User Configuration sections in the following path:
\Windows Components\Internet Explorer\Internet Control Panel\Security Page\ Intranet Sites: Include all network paths (UNCs
I don’t see this setting and frankly getting frustrated. I am new to Powershell so still learning as I am trying to accomplish as task.
Any suggestions on how to overcome this.