Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1031

PS1 scripts invocation ends with "cannot be loaded because running scripts is disabled on thi s system", affect MS Windows desktop series

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • Scripts
    • None

    Description

      PS1 scripts invocation ends with "cannot be loaded because running scripts is disabled on thi s system".
      This was spotted on Windows 10 but it seems it affect more MS Windows desktop series (at leas 8.x too) - based on HiChat discussion.

      When I open PowerShel, enter the bin folder and run .\standalone.ps1 I get this:

      .\standalone.ps1 : File E:\jboss-eap-7.0\bin\standalone.ps1 cannot be loaded because running scripts is disabled on this s system. 
      For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.
      At line:1 char:1
      + .\standalone.ps1
      + ~~~~~~~~~~~~~~~~
      + CategoryInfo : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
      

      what "helped" is this:
      Set-ExecutionPolicy RemoteSigned
      but I had to run powershell as administrator because it's changing registry key ... so well, not straightforward usage of ps1 scripts ... Not everybody is able to run in admin mode.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rsvoboda@redhat.com Rostislav Svoboda
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: