https://github.com/antlafarge/windows-scripts
https://github.com/antlafarge/windows-scripts
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/antlafarge/windows-scripts
- Owner: antlafarge
- Created: 2022-11-19T16:12:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-17T06:40:30.000Z (3 months ago)
- Last Synced: 2025-02-17T07:30:57.769Z (3 months ago)
- Language: PowerShell
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# windows-scripts
Useful scripts for Windows
## Get actual execution policies
```ps1
Get-ExecutionPolicy -List
```## Allow execution of scripts on Windows
```ps1
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
```## If the script can't be executed
- Set the policy to Unrestricted :
```ps1
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
```
- Execute your script.
- Then reset the policy to RemoteSigned :
```ps1
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
```