Skip to main content
0 votes
1 answer
102 views

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted Not working

I opened PowerShell as an admin and got an error message stating that "running scripts is disabled on this system": When I try to run Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy ...
Uday Tyagi's user avatar
0 votes
1 answer
103 views

Module cannot be loaded on non-ps1 script

This command extracts the archive when running it directly in PowerShell 7.5.0-rc.1: Expand-Archive -path .\test.zip -DestinationPath . But running it via a Deno script: new Deno.Command("...
Ooker's user avatar
  • 3,394
0 votes
0 answers
50 views

Get-BPA Model errors

While trying to run Get-BpaModel I'm running into: Get-BpaModel : There has been an error while trying to set the process wide execution policy. (Inner Exception: Windows PowerShell updated your ...
Boolog's user avatar
  • 1
4 votes
2 answers
3k 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
  • 333
1 vote
1 answer
654 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
1 answer
693 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
556 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
268 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
  • 18.3k
2 votes
1 answer
190 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
234 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
3 votes
0 answers
1k 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,128
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
  • 165
2 votes
0 answers
557 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
747 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
4k 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