Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Signed Powershell Script

$
0
0

Hello,

I have trouble with self signed Powershell scripts.

I've created a CodeSign Certificate from the internal CA in my Domain.

After that I've used this Certificate to sign PS scripts.

When I call these scripts in a running shell I get this message:

Do you want to run software from this untrusted publisher?
File z:\Applications\Scripts\HelloWorld.ps1 is published by CN=Administrator, CN=Users, DC=contoso, DC=com
and is not trusted on your system. Only run scripts from trusted publishers.
[V] Never run  [D] Do not run  [R] Run once  [A] Always run  [?] Help (default is "D")

I've imported this certificate to the Trusted Root Store of the Server and the current User Account.

So I can't explain why this is not working!

Has anyone a hint for me?

Thanks!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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