Search This Blog

Tuesday 19 February 2013

PowerShell Script not Digitally Signed

Hi,

i Am trying to schedule a Powershell Scrip for SharePoint backups and got this:




C:\Backups\SharePoint>SPScheduledBackup_Full.bat

C:\Backups\SharePoint>PowerShell -command C:\Backups\Sharepoint\SPScheduledbacku
p_Full.ps1
File C:\Backups\Sharepoint\SPScheduledbackup_Full.ps1 cannot be loaded. The fil
e C:\Backups\Sharepoint\SPScheduledbackup_Full.ps1 is not digitally signed. The
 script will not execute on the system. Please see "get-help about_signing" for
 more details..
At line:1 char:49
+ C:\Backups\Sharepoint\SPScheduledbackup_Full.ps1 <<<<
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException


The problem here was that i copied the scripts from a Dropbox folder i shared it on.
i Recreated the PS1 file and pasted the content of the PS1 and this error was something of the past.

No comments:

Post a Comment