UAC and scripts (.wsf)

  • Thread starter Thread starter Thomas Boerkel
  • Start date Start date
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
 
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.
 
Back
Top