Solved

vbscript to exe translator

Posted on 2009-07-03
3
304 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
ID: 24774529
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
ID: 24774783
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
ID: 31600139
great answer!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

778 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