dotnetresolution

Thursday, 27 November 2014

File cannot be loaded because the execution of scripts is disabled on this system

There two to solve this error :

  • Set policy
  • By pass the policy
  1. Set policy
Set-ExecutionPolicy Unrestricted
or
Set-ExecutionPolicy RemoteSigned

     2. By pass the policy

powershell.exe -ExecutionPolicy ByPass -File script.ps1
Posted by Enginlien at Thursday, November 27, 2014
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2015 (11)
    • ►  October (1)
    • ►  September (3)
    • ►  July (7)
  • ▼  2014 (14)
    • ▼  November (13)
      • File cannot be loaded because the execution of scr...
      • Get Bulk Server IPS
      • Get time zone + window application
      • GetFileName + powershell
      • Trust SSL + ServicePointManager.ServerCertificateV...
      • Datasheet view + multilune text box of type enhanc...
      • BCS SHAREPOINT 2013
      • How to enable Developer Dashboard in SharePoint
      • Number of item in List in SharePoint Site througho...
      • Link of site or list appears but not working in Sh...
      • Web Application Migration SP 2010 to SP 2013
      • RSS FEED
      • List view threshold
    • ►  March (1)
  • ►  2013 (7)
    • ►  December (6)
    • ►  October (1)
  • ►  2012 (1)
    • ►  September (1)

About Me

Enginlien
View my complete profile
Simple theme. Theme images by gaffera. Powered by Blogger.