[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do I script Runas

Posted on 2011-09-09
7
Medium Priority
?
319 Views
Last Modified: 2012-06-22
I have a kioisk that runs Internet explorer but it doesn't work well under standard user. IE runs well with administrative privilage and would like to create a script that will make IE run with administrative right. I'll be very glad if someome will help me create a Runas script to run IE.

Thanks.
0
Comment
Question by:SkairoTech
7 Comments
 
LVL 13

Expert Comment

by:stergium
ID: 36509962
write a cmd file with
runas /user:computer\adminuser  /savecread iexplore.exe
and run the cmd file
hope that helps
0
 

Expert Comment

by:Kaiser_10
ID: 36510121
Hi,

write a cmd or bat file with:

runas /user:coputername\adminuser "c:\Program Files\Internet Explorer\iexplore.exe"

When you run this cmd or bat file, it promt by the admin password.

regards.
0
 

Author Comment

by:SkairoTech
ID: 36511012
Thanks. Is there a way to put in the admin password so that it doesn't prompt the user? I don't want to give the admin password to the users.
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
LVL 8

Expert Comment

by:Amitabh Singh
ID: 36511411
hi
 try PsEXEC  

PsExec.exe -u DomainName\administrator -p AdminPassword  "c:\program files\internet explorer\iexplore.exe"


Download
http://technet.microsoft.com/en-us/sysinternals/bb897553
0
 
LVL 8

Accepted Solution

by:
Amitabh Singh earned 1000 total points
ID: 36511461
Steps for script

1: Download Pstool from http://technet.microsoft.com/en-us/sysinternals/bb897553 , and place Psexec.exe under %systemroot%\system32 folder .

2. create a new text file past fallowing code mention below and save it as run.bat


PsExec.exe -u DomainName\administrator -p AdminPassword  "c:\program files\internet explorer\iexplore.exe"

Open in new window

0
 
LVL 8

Expert Comment

by:Amitabh Singh
ID: 36511489
you need to replace administrator user name and password with yours and i recommend you to convert this bat file as exe to secure your Administrator Password !

a free and best tool for bat to exe conversion is
http://www.f2ko.de/programs.php?lang=en&pid=b2e
0
 

Author Closing Comment

by:SkairoTech
ID: 36511622
Thanks, it works perfectly and I'm very grateful.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question