Syntax for runas in Start>Run dialogue

  • Thread starter Thread starter simonc
  • Start date Start date
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.
 
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
 
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. :-)
 
Back
Top