mirror of
https://github.com/JG2401/PowerShellProfiles.git
synced 2026-08-29 04:30:08 +00:00
Merge pull request #2 from JG2401/executionpolicies
execution-policies problem solution
This commit is contained in:
18
README.md
18
README.md
@@ -74,3 +74,21 @@ 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
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
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
|
||||||
|
```
|
||||||
BIN
images/execution-policies_error.png
Normal file
BIN
images/execution-policies_error.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user