UAC and scripts (.wsf)

T

Thomas Boerkel

HI!

I'd like to mark some .wsf scripts as "needs admin rights", so that the
user gets the UAC prompt, when double-clicking on them.

If they were .exe, I could create a .manifest file but for scripts, I
would need a c:\windows\system32\wscript.exe.manifest. Not only would
that be annoying for our customers (putting some file in system32
folder), but it would also affect *all* scripts.

Some time ago, in some Vista newsgroup, someone from Microsoft posted a
solution, but the attachment was missing and I cannot reach him by mail.

Anyone else has a solution to this?

BTW, Java programs have a similar problem. I would have to create a
c:\windows\system32\java.exe.manifest.

Thanks!

Thomas
 
V

Vipin

Interesting I thought the manifest solution would work only for exes.
Also there is the application compatibility toolkit which can be used to
create a compatibility database which when installed on the target computer
would mark the application. Another solution for binaries is to right click
and then in the compatibilty tab you can mark it to run as administrator.

But as far as I understood and played, they would work for executeables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top