| 1 | + | # PowerShdll |
| 2 | + | Run PowerShell with dlls only. |
| 3 | + | Does not require access to powershell.exe as it uses powershell automation dlls. |
| 4 | + | |
| 5 | + | ## dll mode: |
| 6 | + | |
| 7 | + | ``` |
| 8 | + | Usage: |
| 9 | + | rundll32 PowerShdll,main <script> |
| 10 | + | rundll32 PowerShdll,main -f <path> Run the script passed as argument |
| 11 | + | rundll32 PowerShdll,main -w Start an interactive console in a new window |
| 12 | + | rundll32 PowerShdll,main -i Start an interactive console in this console |
| 13 | + | ``` |
| 14 | + | |
| 15 | + | ## exe mode |
| 16 | + | |
| 17 | + | ``` |
| 18 | + | Usage: |
| 19 | + | PowerShdll.exe <script> |
| 20 | + | PowerShdll.exe -f <path> Run the script passed as argument |
| 21 | + | PowerShdll.exe -i Start an interactive console in this console |
| 22 | + | ``` |
| 23 | + | |
| 24 | + | ## Known Issues |
| 25 | + | |
| 26 | + | Some errors do not seem to show in the output. May be confusing as commands such as Import-Module do not output an error on failure. |
| 27 | + | Make sure you have typed your commands correctly! |
| 28 | + | |