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

x
?
Solved

bat to install an exe file

Posted on 2011-03-04
12
Medium Priority
?
661 Views
Last Modified: 2012-05-11
I'm trying to install fileformatconverters.exe via a bat file.  I need to do this with administrator rights.

So far I have
xcopy /y fileformatconverters.exe "c:\:"
start c:\fileformatconverters.exe /passive.  

It will not install unless the machine is logged in as administrator.  Can I get around this?
0
Comment
Question by:WellingtonIS
[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
  • 6
  • 5
12 Comments
 
LVL 11

Expert Comment

by:Kruno Džoić
ID: 35039578
start bat file with RunAs tool

or

You can use psexec tools ( free ) and start bat remotely from another computer

fileformat.bat - example, add in environment path

psexec \\computerIP_address -u Administrator -p password fileformat.bat
0
 
LVL 3

Expert Comment

by:Frank_Alphaserveit
ID: 35039608
what OS is this machine running?
0
 

Author Comment

by:WellingtonIS
ID: 35039660
OK I'll try the Psexec.  Thanks.
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:WellingtonIS
ID: 35039663
The OS is windows XP pro
0
 
LVL 3

Expert Comment

by:Frank_Alphaserveit
ID: 35039691
you can include the "runas" command in the bat file

"runas /user:domain\username"
0
 

Author Comment

by:WellingtonIS
ID: 35039720
so do "runas /user:domain\username"  where is the password
Then run Start c:\...
0
 
LVL 3

Expert Comment

by:Frank_Alphaserveit
ID: 35039736
sorry

"runas /user:domain\username password"
0
 
LVL 3

Accepted Solution

by:
Frank_Alphaserveit earned 2000 total points
ID: 35039744
in total it would be

"
runas /user:domain\username password
xcopy /y fileformatconverters.exe "c:\:"
start c:\fileformatconverters.exe /passive.
"
0
 

Author Comment

by:WellingtonIS
ID: 35039770
ok one more question:
runas /user:wellington\administrator password?
0
 
LVL 3

Expert Comment

by:Frank_Alphaserveit
ID: 35039817
yes, replace "password" with the administrator password
0
 

Author Closing Comment

by:WellingtonIS
ID: 35039839
I had to put a : between the administrator and the password but it worked. Thanks!  You saved me so much time.
0
 
LVL 3

Expert Comment

by:Frank_Alphaserveit
ID: 35039852
bah, i knew i forgot something:)

glad it worked out!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

604 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