Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I run a program not as Administrator?

I already tried

runas /user:guest notepad

But I need to provide a password and I don't know it.

p.s.: I only have the default console and PowerShell available.

share|improve this question

migrated from serverfault.com Mar 7 '11 at 4:48

This question came from our site for professional system and network administrators.

add comment

2 Answers 2

You are running a Server Core edition of Windows?

  1. First you need to enable and set the password of the guest user. You can do that using this command:net user guest * .

  2. And then you can use the run as command: run as /user:guest notepad.And then enter the password you set in step 1

Please notice: The guest account is by default disabled. You have to enable it first using this command. You also need administrator privileges to be able to do this.

net user guest /active:yes
share|improve this answer
add comment

runas will always prompt for a password, but if the account has no password (like Guest) you can just leave it blank and hit enter. The program should run anyway.

If the account you're trying to run as has a password, and you don't know it, you're out of luck. But if you already have administrator access, you can either change that password or create a new user with your desired privilege level to run the command.

Unfortunately there doesn't seem to be a way to automate the password entry, and this is intentional; see this blog entry.

share|improve this answer
    
There is a way to automate it, using /savecred. –  grawity Mar 6 '11 at 17:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.