Solved

vbscript to exe translator

Posted on 2009-07-03
3
307 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
[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
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

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

710 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