RES Reporting install generates a "PowerShell Security policy should be set to Unrestricted to the Current User scope" error

Version 1

    Problem

    RES Reporting install generates a "PowerShell Security policy should be set to Unrestricted to the Current User scope" error.

     

    Cause

    The Microsoft PowerShell execution policy must be set on the current user scope.   The "Set-ExecutionPolicy" command configures the machinepolicy, not the user policy. 

    Solution

    Run the below command on your server.
     
     
    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
     
    Red text may show up as if the command  errored, but it is just a message:
     
    Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by a policy defined at a more specific scope.  Due to the override, your shell will retain its current effective execution policy of Unrestricted. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information please see "Get-Help Set-ExecutionPolicy".

    Type the below command to verify currentuser is set to Unrestricted

    Get-Executionpolicy -List

    If current user says unrestricted, you will now be able to install the software.