Solved

How do I script Runas

Posted on 2011-09-09
7
307 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
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.

 
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CMD command to remove subdirectories and files from a certain folder 7 52
BAT FILE ERROR LOG Question 17 68
How to run Invisible a .bat file? 3 71
Robocopy command line 6 73
One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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