Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell : "Run only script that you trust" message even after many modifications; I am going crazy ! :)

$
0
0

Hello,

I have copy/paste a script found on Internet to a ps1 freshly created file. Then I have uploaded that file to my Netlogon.

Powershell v2 is installed on my Wn7.

Now I try to execute the command :

powershell -executionpolicy bypass -file \\mydomain\blablablab\myfile.ps1. (even with -executionpolicy Unrestricted).

But I always have a question from Powershell like "Run only script that you trust" and I have to type "Y" (Execute this time).

From a 2008 server, I have modified the GPO for Powershell and set the execution policy to "Allow all scripts".

Even like that I am still having the message.

With streams.exe, I have "nothing" for my "file.ps1"

Someone has an idea ?

Thank you



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>