#Powershell run command in non-admin privileges

11 messages · Page 1 of 1 (latest)

floral heart
#

i have an admin powershell session, i want to beable to run a command in non-admin.

storm adder
#

Just don’t create the terminal with admin privileges

floral heart
#

i'm trying to open a non admin terminal from admin terminal

cold mason
#

if you are using linux

Syntax
$ sudo -u <username> commands

floral heart
#

not, windows.

#

and it's powershell.

graceful jacinth
#

are you doing it remotely or smth, why not open a non-admin terminal to begin with?

floral heart
#

because i don't want to.

storm adder
#

Why run the command in a non-admin cmd then

floral heart
#

i have a command to open an admin powershell
and i want a command to open a non-admin powershell.

rn i just do Ctrl+Shift+W to close the terminal window, then Win+3 (because powershell is third on taskbar)

graceful jacinth
#

so you're looking for a command or a keyboard shortcut?