2

I want to open a new powershell.exe as a user but with the administrator rights (this user is already added to administrator group).

To open new powershell.exe as user, I used this command:

runas /profile /user:emma powershell.exe

Can I change it somehow to get what I need?

1 Answer 1

5

You want something like

Start-Process powershell.exe -Credential "emma" -NoNewWindow -ArgumentList "Start-Process powershell.exe -Verb runAs"

Assuming Emma is an admin.

1
  • 3
    @Karo936 if emma is already logged in, you can just start powershell -verb runas
    – SimonS
    Nov 30, 2018 at 15:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .