Syntax for runas in Start>Run dialogue

S

simonc

I want to run the registry editor from the Start Run dialogue but as a
different user (with admin rights). I've been searching for the syntax for
this but can't find it.

Grateful if anyone can advise me.
 
P

Pegasus [MVP]

simonc said:
I want to run the registry editor from the Start Run dialogue but as a
different user (with admin rights). I've been searching for the syntax for
this but can't find it.

Grateful if anyone can advise me.

Try this:
runas /user:simonc regedit
 
T

Tim Meddick

Simon,
The command usage that "Pegasus [MVP]" quoted is absolutely
fine.

However, I ran a similar command and for ages could not work out why I
kept getting the 'runas' usage instructions instead of it actually
executing the command.

It seems that you must remember to enclose ANY commands that contain
more than one parameter in double quotes. Thusly :


runas /user:simonc "regedit /s Acrobat.reg"


....seems a simple enough thing to do (but then, I am!) but also a thing
easy to forget (and I still do).

==

Cheers, Tim Meddick, Peckham, London. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top