Posts

Showing posts from August, 2018

Sitecore 9 installation: .ps1 is not digitally signed?

Image
Are you installation Sitecore 9, Solr or Solr with SSL with PowerShell scripts but facing the below errors:
"script.ps1 :File path\script.ps1 cannot be loaded. The file path\script.ps1 is not digitally signed. You cannot run this script on the current system."
.ps1 cannot be loaded because the execution of scripts is disabled on this system 
This is because the script you are running is not signed, means scripts is not trusted to be run on the system.
Solution: Need to change the execution policy setting, based on your server policy and requirement, try to run the below command, it will bypass or run the unsigned scripts for the current session.
Set-ExecutionPolicy Bypass
Or
Set-ExecutionPolicy RemoteSigned
Or
Set-ExecutionPolicy Unrestricted
Windows PowerShell has below different execution policies:

Restricted - No scripts can be run. Windows PowerShell can be used only in interactive mode.AllSigned - Only scripts signed by a trusted publisher can be run.RemoteSigned - Downloade…