By craig.parkinson ·
we all know this little line

runas /noprofile /env /user:domain\username "C:\WINDOWS\regedit.exe"
runas /profile /env /user:domiain\username "mmc C:\WINDOWS\system32\dsa.msc"

fantastic works a treat

so why does
runas /noprofile /env /user:domain\ "c:\program files\internet explorer\iexplorer.exe"


runas /noprofile /env /user:domain\ iexplorer.exe

not work

and how do i get mapped drives to run as?
runas /noprofile /env /user:domain\username d: ???
as that dont work
or maybe just get windows explorer to open under runas

since they decided to created admin acoounts for us to use for admin tasks (which is a good idea in principle)but for supporting users is a total waste of time and effort, something that used to take 30secs can take 5mins now

so running as is a great idea but find typing in the username/domain password really annoying

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by Bizzo In reply to runas

Not sure what you're getting at here. When you say that commands 3 and 4 don't work, what error are you getting?

It may be a typo, but you have mistakes in those commands:

<i>runas /noprofile /env /user:domain\ "c:\program files\internet explorer\iexplorer.exe"

runas /noprofile /env /user:domain\ iexplorer.exe</i>

You don't have a username specified, just the domain name, and also, iexplorer.exe doesn't exist anyway, it should be iexplore.exe

As for the mapped drives issue, again, what error messages are you getting? If the drive is mapped for the current user, then you should be able to use the runas command on it, but, if the user you're supplying to the runas command doesn't have rights to the mapped drive, then it will fail, it all depends on the messages you're getting.

Collapse -

what a div

by craig.parkinson In reply to Syntax

runas /noprofile /env /user:domain\username "c:\program files\internet explorer\iexplore.exe"

runas /noprofile /env /user:domain\username iexplore.exe

you are right about the typos i missed putting in the username, and you are right about thwe internet explorer.exe it is infact iexplore that is now working cheers
(teach me next time to check the spelling)

so just the mapped drives and drives i need access to now

runas /profile /env /user:domian\username c

or maybe

runas /profile /env /user:domian\username O

or to user the full share name

runas /profile /env /user:domian\username \\server name\foldername

tried those and the admin account has full access to all those above

Collapse -

runas vs mapped drives

by Bizzo In reply to what a div

A known issue apparently, or should I say "This behavior is by design."!

And here's some more info I found:

Looks like you have to use the UNC pathname instead of the mapped drive letter.

Good luck!

Related Discussions

Related Forums