(duplicate) cassandra.bat is not able to run scripts and throwing error [duplicate]

Author: Parthiban

Originally Sourced from: https://stackoverflow.com/questions/73509371/cassandra-bat-is-not-able-to-run-scripts-and-throwing-error

PS C:\Windows\system32> Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force 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 Restricted. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more information please see "Get-Help Set-ExecutionPolicy". At line:1 char:1

  • Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
  •   + CategoryInfo          : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
      + FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand