Skip to main content

Questions tagged [executionpolicy]

A security setting for Windows PowerShell that enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your computer.

executionpolicy
3 votes
1 answer
83 views

"Run with PowerShell" gives execution policy error but running directly in PowerShell window does not

I have a simple .ps1 script that basically just creates a directory. When I right-click on the script in Windows Explorer and select "Run with PowerShell", it gives the following error ...
charlesz's user avatar
  • 323
0 votes
0 answers
34 views

Problems with PowerShell execution policies

I'm trying to execute a PowerShell script called load_ssh_keys.ps1 to load my ssh keys into the Pageant agent. My script works correctly when I call it directly from the PowerShell prompt, but as soon ...
joosts's user avatar
  • 154
0 votes
0 answers
47 views

Is there any solution for DeepSpeech installation on python?

So, i'm facing this problem since hours, i cannot install DeepSpeech package in the python virtual environnement. Any Solution for this, i would be grateful if you help me. I used everything as it ...
Mostepha Amine's user avatar
1 vote
1 answer
197 views

Self-hosted agent DevOps pipeline build failing because of powershell execution policy

I have a Self-hosted agent version (3.236.1), have 3 such agents. DevOps pipeline builds are failing with error like below. I went through lots of Microsoft articles to set Execution policy for ...
user2921973's user avatar
0 votes
0 answers
17 views

Other reasons why python venv is not working apart from ExecutionPolicy

I was wondering why running command activate in venv_name/Scripts is not working on one computer while on another with exactly same ExecutionPolicy settings it works. Recently I've started to use new ...
annakopy's user avatar
0 votes
1 answer
302 views

BPA - Best Practices Analyzer is failing to run despite having 'Unrestricted' process execution

OS: Windows Server 2016 -- ver 1607 (OS Build 14393.6452) PowerShell: 5.1.14393.6343 When attempting to run a BPA scan, it returns an error of... get-bpamodel : There has been an error while trying to ...
BraveITMan's user avatar
0 votes
1 answer
359 views

AppData\Roaming\npm\nest.ps1 is not digitally signed

I am new to nestjs. cloned a repo from github and it is written using nestjs. (I wrote it with a friend (first time for both of us), so maybe there is a problem with that end...) I try to install nest ...
HMT's user avatar
  • 17
3 votes
2 answers
186 views

Fill a range with random numbers and execution policy

We can fill a range [first, last) using std::mt19937 g; std::uniform_real_distribution<> u; std::generate(first, last, [&]() { return u(g); }); Theoretically, it would be more performant to ...
0xbadf00d's user avatar
  • 18k
2 votes
1 answer
85 views

Why i can't change the policy from restricted to remote signed?

I hade a problem with 'touch' command , so someone tolled me that i should change the policy (in PowerShell) so I can run the script in vs code ,but the problem is that i couldn't change the policy ...
Suzy Ikram's user avatar
0 votes
1 answer
147 views

while activating virtual environment in python showing this

ps1 cannot be loaded because running scripts is disabled on this system. run this command "Set-ExecutionPolicy RemoteSigned" then showing this To change the execution policy for the default ...
Althaf Sharafudheen's user avatar
2 votes
0 answers
457 views

Error when running application with PowerShell version 7: "Get-ExecutionPolicy" command not found

Description: I encountered an error while running my application with PowerShell version 7. The error message states: Get-ExecutionPolicy: The 'Get-ExecutionPolicy' command was found in the module '...
Abhijay007j's user avatar
  • 1,018
2 votes
1 answer
2k views

Powershell Access is denied

I am getting an error "Access is denied" when I try to run a Powershell script: Set-Service : Service 'Windows Installer (msiserver)' cannot be configured due to the following error: Access ...
Docfxit's user avatar
  • 155
2 votes
0 answers
344 views

Security policy is preventing running PS1 file on new windows 11 install regardless of ExecutionPolicy

I am trying to run jenv Java Enviroment Handler for windows and the ps1 file used is unsigned. This shouldn't be an issue since i set Process, CurrentUser and LocalMachine to Unrestricted yet the ...
Kevin Barker's user avatar
0 votes
2 answers
490 views

Powershell closing automatic when running .ps1 file

I'm trying to create this .ps1 file: see the full .ps1 markup # Definieer het pad waar de bestanden worden gekopieerd $sourcePath = "C:\Users\Mr.Fox\AppData\Local\Hogwarts Legacy\Saved" # ...
Xmaster1004's user avatar
0 votes
1 answer
2k views

.PS1 files not digitally signed

I'm trying to code in flutter and got an error message saying it cant be loaded because of a ps1 file not being digitally signed. I googled that error and saw it could be an execution policy error, I ...
Paola Vilaseca's user avatar

15 30 50 per page
1
2 3 4 5 6