Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Administration > I'm not an administrator when UAC enabled

Reply
Thread Tools Display Modes

I'm not an administrator when UAC enabled

 
 
Vic
Guest
Posts: n/a

 
      12-14-2009
Hello,

I don't know if this is the right place to post this question but if not may
someone could advise me where would be a better place.

I have a VB6 application that creates an ODBC System datasource on the fly.
However, with UAC enabled it will not create the ODBC datasource. I believe
the problem may be associated with the fact that it thinks I am not an
Administrator (with UAC on) but I am! I added some code to test using the
funtion "IsUserAnAdmin" and it returns no when UAC is enabled and yes when
UAC is turned off. I'm thinking if I could find out why it says I'm not an
administrator (and I could get it elevated), that I would be able to
programmatically add a data source.

Any ideas?


Thanks,

Vic

 
Reply With Quote
 
 
 
 
Vic
Guest
Posts: n/a

 
      12-15-2009

"Vic" <> wrote in message
news8512528-B37F-4FC9-9F33-...
> Hello,
>
> I don't know if this is the right place to post this question but if not
> may someone could advise me where would be a better place.
>
> I have a VB6 application that creates an ODBC System datasource on the
> fly. However, with UAC enabled it will not create the ODBC datasource. I
> believe the problem may be associated with the fact that it thinks I am
> not an Administrator (with UAC on) but I am! I added some code to test
> using the funtion "IsUserAnAdmin" and it returns no when UAC is enabled
> and yes when UAC is turned off. I'm thinking if I could find out why it
> says I'm not an administrator (and I could get it elevated), that I would
> be able to programmatically add a data source.
>
> Any ideas?
>
>
> Thanks,
>
> Vic
>



I was able to resolve this by adding a User DSN programmatically instead of
a System DSN

 
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

BB 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
Lost Internet connection. PVR Windows Vista Networking 2 12-01-2009 05:29 PM
Repair DNS 4010 events... Jake Windows Server 1 11-04-2009 11:20 AM
OT: all systems on network slow for last week or so Gregg Hill Windows Small Business Server 15 10-30-2009 01:43 AM
Re: Incorrect server name Ace Fekay [MCT] Windows Server 4 10-28-2009 03:17 PM
Problem in joining Domain nimamrsdy@hotmail.com Windows Vista Administration 5 03-21-2008 06:47 PM



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