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?

5

You want something like

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

Assuming Emma is an admin.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.