Solved

How do I script Runas

Posted on 2011-09-09
7
308 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

 
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 250 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

695 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