• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

How do I script Runas

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
SkairoTech
Asked:
SkairoTech
1 Solution
 
stergiumCommented:
write a cmd file with
runas /user:computer\adminuser  /savecread iexplore.exe
and run the cmd file
hope that helps
0
 
Kaiser_10Commented:
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
 
SkairoTechAuthor Commented:
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
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
Amitabh SinghAWS Certified Solution Architect | L3 IT Specialist for CloudCommented:
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
 
Amitabh SinghAWS Certified Solution Architect | L3 IT Specialist for CloudCommented:
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
 
Amitabh SinghAWS Certified Solution Architect | L3 IT Specialist for CloudCommented:
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
 
SkairoTechAuthor Commented:
Thanks, it works perfectly and I'm very grateful.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now