Quantcast
Viewing all articles
Browse latest Browse all 6689

Powershell Scripts from DS6.9

I need a solution

We did a fresh install of our DS when we migrated to SP6 on a 2008 R2 box.  I wanted to start using Powershell scripts natively.  I have selected an external PS1 file in the DS job.  The client and the DS both have permission to access the PS1 file.  When I try to execute the file on a client, it says “Powershell Execution Policy is Restricted”

On our clients, I used group policy Computer->Administrative Templates->Windows Components->Windows Powershell->Turn on Script Execution -> All  to enable this. 

Using Get-ExecutionPolicy on the client itself, the policy comes back “unrestricted”

I manually used Set-ExecutionPolicy on the DS server itself to unrestricted and it now also reports that it is unrestricted. I have tried running the job specifying credentials and without (our network share allows "Domain Computers" read access so the system account can access the share).

I don’t know what else to try to make this work.  I do have work arounds that have a cmd file call a ps1 file locally which I’ve used in the past.  But I want this to work without having to do that workaround. 


Viewing all articles
Browse latest Browse all 6689

Trending Articles