execution-policies problem solution

This commit is contained in:
jonas@geiger-natur.de
2024-06-14 20:34:36 +02:00
parent 808edad4dc
commit 8855e6f0d4
2 changed files with 19 additions and 1 deletions

View File

@@ -73,4 +73,22 @@ To open the profile configuration
My personal [profile](./DeveloperProfile.ps1). My personal [profile](./DeveloperProfile.ps1).
A comprehensive sample for PSReadLine you can find on [GitHub](https://github.com/PowerShell/PSReadLine/blob/master/PSReadLine/SamplePSReadLineProfile.ps1). A comprehensive sample for PSReadLine you can find on [GitHub](https://github.com/PowerShell/PSReadLine/blob/master/PSReadLine/SamplePSReadLineProfile.ps1).
## Problem Solutions
### Execution Policies
In case you get an execution-policies error like that
![alt text](images/execution-policies_error.png)
you can check your policies with
```
Get-ExecutionPolicy -List
```
and change it with the following command (run powershell as administrator)
```
Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope LocalMachine
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB