Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haam3r/PowerShell
Collection of PowerShell scripts
https://github.com/haam3r/PowerShell
outlook powershell powershell-script powershell-scripts
Last synced: 3 months ago
JSON representation
Collection of PowerShell scripts
- Host: GitHub
- URL: https://github.com/haam3r/PowerShell
- Owner: haam3r
- License: mit
- Created: 2016-12-13T08:00:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-21T22:47:10.000Z (almost 7 years ago)
- Last Synced: 2024-05-18T05:33:54.220Z (6 months ago)
- Topics: outlook, powershell, powershell-script, powershell-scripts
- Language: PowerShell
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - haam3r/PowerShell - Collection of PowerShell scripts (PowerShell)
README
# PowerShell
Collection of PowerShell scripts## Notes
### Disable PowerShell Executionpolicy
**NB!Has to be run from elevated prompt**
```powershell
powershell.exe -NoP -NonI -W Hidden -Enc UwBlAHQALQBFAHgAZQBjAHUAdABpAG8AbgBQAG8AbABpAGMAeQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARgBvAHIAYwBlAA==
```
Enc portion is base64 encoded and contains:
```powershell
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force
```### Run powershell functions from Python
Works on Python 2.7.10
```powershell
p = subprocess.Popen(["powershell.exe", ". C:\\Temp\\test.ps1;", "test -Text 'test2'"], stdout=sys.stdout)
```