Signing Scripts

Use this forum to ask questions after your subscription maintenance expires or 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.
This topic is 8 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
mwgevans
Posts: 1
Last visit: Tue Jan 10, 2017 5:44 am

Signing Scripts

Post by mwgevans »

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: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Signing Scripts

Post by davidc »

What build of PowerShell Studio do you have installed?

David
David
SAPIEN Technologies, Inc.
This topic is 8 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.