Possibly I'm misreading your instructions, but I
can't get them to work. Say my old (admin) account
is oldacct and the new (limited) account is newacct.
Then ...
Start .. run .. runas /user
ldacct "notepad.exe"
prompts for the oldacct pw, then opens notepad; but
Start .. run .. runas /user:newacct "notepad.exe"
prompts for the newacct pw, then just goes away,
apparently without doing anything.
The same thing happens when I make a shortcut to
cmd.exe and modify the target entry as suggested.
(I've rebooted & checked that the pw is correct.)
Thanks for any further advice.
--
r.e.s.
Roger Abell said:
There really is not that much to the use of RunAs.
You can make a shortcut to anything (except Explorer)
and then r-click into the properties of the shortcut and
click the second tab where you can mark the shortcut
to start the app with alternate credentals.
When you use such a shortcut, like one to IExplorer,
you will be prompted for an account and password.
This prompting can become an annoyance.
If you start / run cmd and in the cmd window enter
runas /?
you will see a cmdline syntax for runas
This syntax can be used to modify shortcuts, not on
the second sheet but on the first where the target app
is listed. It might say for the target
"%ProgramFiles%\Internet Explorer\IExplore.exe"
this you would modify to be such as
runas /profile /u:surfaccount "%ProgramFiles%\Internet
Explorer\IExplore.exe"
and then you are only prompted for the password.
You need to define some "surfaccount" that is of limited power.
If you have Pro you can add the /savecred switch and then
you are only prompted for the password the first time the
shortcut is used (per account in which it is used) or when the
password of the "surfaccount" account is changed.
Now, to make it even more simple, you can make a
shortcut to cmd.exe and set it to runas some account.
Then, in this window launch what you want, such as
iexplorer.exe or msimn.exe (outlook express) and these
run within the runas account. I personally find this to
be a most useful way to do it, as I only need to keep
straight which cmd window is running in the alternate
account.
Another alternative is to make small bat file. For example,
use notepad to save the following 3 lines as surf.bat
start "Explorer" /B "%ProgramFiles%\Internet Explorer\IExplore.exe"
start "Explorer" /B "%ProgramFiles%\Internet Explorer\IExplore.exe"
start "Express" /B "%ProgramFiles%\Outlook Express\msimn.exe"
Then, make a shortcut the will start this .bat with runas in one of the
two ways above. When you click that shortcut you get two IE windows
and one Outlook Express window running in context of that other account.
(Remember, OE can be just as hazardous as IE is as a vehicle by which
things can get through to execute).