1.

Solve : "Run as..."?

Answer»

I am constantly having to run Internet Explorer using the Run As command. This way I can log in as an administrator and perform the tasks I need to perform and then shut IE down.

Normally, I just right click on Internet Explorer and select Run As...

Then I have to use "Following User" ...

Is there any way I can create a bat file that will do this for me" something like:

start iexplore.exe /runas

username
password



Any help you guys can give is appreciated!!!runas is a command. Type runas /? at your command prompt for all the exciting details.

Good luck. 8-)runas /env /user:DOMAIN\FIRSTNAME"DOT"LASTNAME"DOT"ADM /password:WHATEVERYOURPASSWORDIS "iexplore.exe"

This is not working.....I'm pretty certain I'm really close, but still pretty far away!! As far as I know /password is not a valid switch. Runas will prompt you for the password which cannot be blank.

Hope this helps. 8-)runas /user:DOMAIN\USERID"c:\program files\internet explorer\iexplore.exe"

The above works....and it does prompt me for a password.

Now, can I place a 3 second pause then have the password automatically entered?? or....

Can I create another bat that will enter the password inside of the dos window that is already open? Quote

Now, can I place a 3 second pause then have the password automatically entered?? or....

Can I create another bat that will enter the password inside of the dos window that is already open?


Couple of problems with this:

1. While waiting for the password, runas is still running...you would have no opportunity to kick off a delay
2. BATCH code knows nothing of windows and their processes

You could try to pipe the password to runas, but this a security breach. Use at your own RISK:

echo password | runas /user:domain\USERID "c:\program files\internet explorer\iexplore.exe"

The real question is why you need to run internet explorer with credentials not your own. Is your system having other issues?
8-)SIDEWINDER....

This is the deal/why's I'm doing it this way.

I am a Functional Systems Administrator in a Very Very Very large newtork. I have around 750 computers that I'm directly responsible for plus the network has over 7000 workstations and on top of that a database of around 5000 Student ID's that are temporary and ever changing.

In order to perform administrative functions (i.e. password resets, or simply navigating the network) You have to log out locally and then log in again with your administrative account.

With the "Run As" command, I can run Internet Explorer from my regular local user account and still get most of the benifits of logging out. ( I hope this is making sense )

Any way.... TYPING my username and password all day.....every day....is driving me insane!!!

There shouldn't be a security risk....unless I leave my workstation unlocked, but we are on a CAC system so this is unlikely.....or someone could, theoretically, get into the root of my computer and find my "Bat files". But then I'd hunt them down and disable there ability to even touch their computer!! 8-)

Anyway's....thanks again for the help. I'll give this a shot first thing Monday Morning!!

(This is being sent from my Home Account)


Discussion

No Comment Found