Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I script Runas

Posted on 2011-09-09
7
Medium Priority
?
315 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
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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