How do I stop Windows 7 UAC from displaying this warning when 12.0.1.3298 dbdsn invokes dbelevate12?

Please don't say "turn off UAC altogether", nothing ELSE in SQL Anywhere is producing this symptom.

alt text

asked 04 May '11, 10:26

Breck%20Carter's gravatar image

Breck Carter
25.6k427586844
accept rate: 20%

edited 04 May '11, 11:28

Graeme%20Perrow's gravatar image

Graeme Perrow
8.5k371109

"upload image appears to be broken" - again a missing UAC priviledge:)?

(04 May '11, 10:28) Volker Barth
Replies hidden

...very funny :)

(04 May '11, 10:33) Breck Carter

More fun than UAC, for sure.

(04 May '11, 10:35) Volker Barth

You need to use the Markdown syntax for embedding an image rather than the img HTML tag. Markdown seems to strip it out.

(04 May '11, 11:29) Graeme Perrow

The elevation prompt should only be displayed when you are attempting to perform an operation that requires elevation (eg. creating a System DSN) but not for operations such as creating a user DSN. If you have a case where we are prompting for elevation when we don't need it, that's a bug. Otherwise, this is just how UAC works and it is essentially unavoidable -- you will need to complain to Microsoft.

In Windows 7, Microsoft made a change so that executables digitally signed by Microsoft that require elevation will not issue a prompt if the current user could just click "Yes" to the elevation prompt. To my knowledge, no such provision has been made for other vendors.

As noted, turning off UAC is one option. You can also configure a policy that will automatically say 'yes' to any elevation prompt. Generally, it is only used for automated testing.

-john.

permanent link

answered 04 May '11, 10:41

John%20Smirnios's gravatar image

John Smirnios
8.9k377110
accept rate: 40%

edited 04 May '11, 10:46

Breck%20Carter's gravatar image

Breck Carter
25.6k427586844

bingo... I highlighted the part of your answer that applies... change dbdsn -ws name to dbdsn -wu name.

(04 May '11, 10:47) Breck Carter

It's not very useful from the command line, but for batch files or shortcuts you can avoid the UAC prompt by using the Windows Task Scheduler. See this ZDNet article.

permanent link

answered 06 May '11, 17:28

Graham%20Hurst's gravatar image

Graham Hurst
2.7k11843
accept rate: 30%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×102

question asked: 04 May '11, 10:26

question was seen: 1,238 times

last updated: 06 May '11, 17:28