Microsoft Windows Vista Community Forums - Vistaheads
Driver Scanner 2009 - Free Scan Now



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Loveheart Dating - Find your Perfect Partner

vbscript and UAC prompt

microsoft.public.windows.vista.general



Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Reply
  #1 (permalink)  
Old 03-01-2007
=?Utf-8?B?ZGFr?=
 

Posts: n/a
vbscript and UAC prompt
Is there any way to force from inside a VBscript the UAC prompt?

I have several vbscripts that run fine when launched from the elevated
command prompt. But when simply double-clickd they run, but of course at
user-level and therefore do not really work. Can the UAC prompt be forced
from a vbscript?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-01-2007
Mark
 

Posts: n/a
Re: vbscript and UAC prompt
On 3/1/2007 10:45 AM, dak:
> Is there any way to force from inside a VBscript the UAC prompt?
>
> I have several vbscripts that run fine when launched from the elevated
> command prompt. But when simply double-clickd they run, but of course at
> user-level and therefore do not really work. Can the UAC prompt be forced
> from a vbscript?


I don't have an answer for your question, however, this brings up a good
issue with the UAC.

Based on what is in Windows Vista's Help and Support file, the VBScript
should bring up the UAC prompt if necessary:

Excerpt from the Vista Help and Support:

User Account Control Overview

User Account Control (UAC) is a new set of infrastructure
technologies in this version of Windows that helps prevent
malicious programs, sometimes called "malware," from damaging
a system, while also helping organizations to deploy a better-managed
desktop.

With UAC, applications and tasks always run in the security context
of a non-administrator account, unless an administrator specifically
authorizes administrator-level access to the system. UAC stops the
automatic installation of unauthorized applications, and prevents
inadvertent changes to system settings.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2007
Jon
 

Posts: n/a
Re: vbscript and UAC prompt
"dak" <dak@discussions.microsoft.com> wrote in message
news:A48EF80C-93C4-4005-A00B-B0B3E95FEC9A@microsoft.com...
> Is there any way to force from inside a VBscript the UAC prompt?
>
> I have several vbscripts that run fine when launched from the elevated
> command prompt. But when simply double-clickd they run, but of course at
> user-level and therefore do not really work. Can the UAC prompt be forced
> from a vbscript?



You can create a shortcut to 'wscript.exe' passing the path to your script
as argument. Then set the shortcut to run as an administrator via
right-click > properties > advanced...

Not ideal, since if you change the location of the script, then the shortcut
fails - but better than starting up an admin command prompt each time.

--
Jon

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-02-2007
=?Utf-8?B?ZGFr?=
 

Posts: n/a
Re: vbscript and UAC prompt
That would be OK if I were the person running these scripts, but I am
designing script to be run by other users on different computers. So still I
ask, can I force the UAC prompt from within a VBscript.

"Jon" wrote:

> "dak" <dak@discussions.microsoft.com> wrote in message
> news:A48EF80C-93C4-4005-A00B-B0B3E95FEC9A@microsoft.com...
> > Is there any way to force from inside a VBscript the UAC prompt?
> >
> > I have several vbscripts that run fine when launched from the elevated
> > command prompt. But when simply double-clickd they run, but of course at
> > user-level and therefore do not really work. Can the UAC prompt be forced
> > from a vbscript?

>
>
> You can create a shortcut to 'wscript.exe' passing the path to your script
> as argument. Then set the shortcut to run as an administrator via
> right-click > properties > advanced...
>
> Not ideal, since if you change the location of the script, then the shortcut
> fails - but better than starting up an admin command prompt each time.
>
> --
> Jon
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-04-2008
gareen gareen is offline
 

Join Date: Oct 2008
Posts: 1
gareen is on a distinguished road
Thanks: 0
Thanked 0 Times in 0 Posts
Re: vbscript and UAC prompt
you can convert your vbscript into EXE using any online tools like this one

Vbs2Exe : Online VBS to EXE converter

and place manifest beside the exe so it runs as administrator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm taking a poll - Are you running with UAC or have you disabled UAC? Joseph Geretz microsoft.public.windows.vista.general 45 03-21-2007 23:41
vbscript to create file =?Utf-8?B?VmFsZXJpbw==?= microsoft.public.windows.vista.general 3 03-01-2007 08:34
How to modify "Program Files" from the command prompt with UAC on? Steve Maser microsoft.public.windows.vista.general 3 02-28-2007 23:08
Vista and VBScript =?Utf-8?B?ZGFr?= microsoft.public.windows.vista.general 2 02-28-2007 21:03
option to turn on password UAC prompt in administrator in Vista SP =?Utf-8?B?R1Q=?= microsoft.public.windows.vista.administration accounts passwords 0 02-28-2007 14:12


All times are GMT +1. The time now is 13:53.


Driver Scanner 2009 - Free Scan Now

Driver Scanner 2 - Free Scan Now



Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119