Tuesday, March 25, 2025

Powershell hacks: How can I run powershell if I am not an admin

Dealing with admin restrictions on my laptop has become quite a hassle. My company won't allow me to have admin privileges, which means even running simple PowerShell commands requires me to ask for admin rights. This has added an extra layer of frustration to my workflow. Why do I need PowerShell, you might ask, when Python can solve many problems with scripts? Well, the catch is that even installing Python and importing libraries requires admin rights—leaving me stuck in a loop of limitations. After a bit of exploration, I found a way to work around this. Here's a simple trick:

powershell.exe -ExecutionPolicy bypass