Support Forums

Signing Scripts

Use this forum to ask questions before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
mwgevans
Posts: 1
Joined: Wed Nov 11, 2015 9:09 am

Signing Scripts

Postby mwgevans » Wed Nov 11, 2015 9:17 am

Hi

I have signed a script using PowerShell Studio 2015 both manually using the button on the tools ribbon and by setting to sign on save. When I run the script I get the following.

ERROR: & : File C:\Users\Mark Evans\Documents\SAPIEN\Files\Hello World.ps1 cannot be loaded. The contents of file C:\Users\Mark Evans\Documents\SAPIEN\Files\Hello
ERROR: World.ps1 might have been changed by an unauthorized user or process, because the hash of the file does not match the hash stored in the digital signature.
ERROR: The script cannot run on the specified system. For more information, run Get-Help about_Signing..
line (1, 2): ERROR: At Line: 1 char: 2
ERROR: + &'C:\Users\Mark Evans\Documents\SAPIEN\Files\Hello World.ps1'
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : SecurityError: (:) [], PSSecurityException
ERROR: + FullyQualifiedErrorId : UnauthorizedAccess

My execution policy is set as follows.

PS C:\Users\Mark Evans\Documents\SAPIEN\Files> Get-ExecutionPolicy -list

Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser AllSigned
LocalMachine AllSigned

Mark
User avatar
davidc
Posts: 4448
Joined: Thu Aug 18, 2011 4:56 am

Re: Signing Scripts

Postby davidc » Thu Nov 12, 2015 10:17 am

What build of PowerShell Studio do you have installed?

David
David
SAPIEN Technologies, Inc.

Return to “Trial Software Questions”

Who is online

Users browsing this forum: No registered users and 1 guest

cron