Wednesday, August 3, 2016

WARNING! Powershell script execution unavailable.

While setting up of cassandra you might face below error. I faced below error, i did workaround and identified the solution of same. I am going to provide the solutions to all of you guys, to get you out from the any severe problem.

PowerShell have four type of execution modes:
1. Restricted
2. All Signed
3. Remote Signed
4. Unrestricted

We need to set any of the one execution mode, please follow below steps, for the solution of same.

Error

WARNING! Powershell script execution unavailable.
   Please use 'powershell Set-ExecutionPolicy Unrestricted'
   on this user-account to run cassandra with fully featured
   functionality on this platform.

 
Problem
PowerShell have four type of execution modes (Restricted, All Signed, Remote Signed, Unrestricted).
Currently your's machine Powershell Execution mode is set to Restricted.

Solution
Change powershell execution mode for this first open PowerShell with administrative rights "Run as Administrator".

Set-ExecutionPolicy Restricted


Check
Check status of execution mode of Powershell using below command
Unrestricted" goto runPowerShell

No comments:

Post a Comment

web stats