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.