Solved

vbscript to exe translator

Posted on 2009-07-03
3
301 Views
Last Modified: 2012-08-13
Dear forum members,

I'm searching for a software which allows me to translate my Windows vbscript scripts to exe AND set that exe to run on the highest privileges. Which means if there is a UAC enabled computer, I'd like to be automatically asked by UAC whether I would or not run that application, because it wants to run with administrative privileges. All of the other softwares I found can't set the exe to run with admin privileges :(

Thank you a lot for your help,
Chris
0
Comment
Question by:mkrisz
3 Comments
 
LVL 1

Expert Comment

by:tojo2k
Comment Utility
If you buy a copy of WinRAR you can create a self-extracting archive that will run in an elevated process and launch the vb script.  That would be one way.
0
 
LVL 15

Accepted Solution

by:
qz8dsw earned 500 total points
Comment Utility
Well this covers the VBS to exe
http://renegadetech.blogspot.com/2006/07/how-to-convert-bat-file-or-vbs-file.html

However it does not cover automatically running as admin.
You would have to use runas or ShellExecute to respawn the script running as administrator.
See here.
http://www.winhelponline.com/articles/185/1/VBScripts-and-UAC-elevation.html

So if you make the changes to the script to automatically respawn the script running as Administratorm then make it an exe following my first link in theory it all should work.

Cheers
0
 
LVL 5

Author Closing Comment

by:mkrisz
Comment Utility
great answer!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now