A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Vista Administration, Accounts and Passwords
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Vista Administration, Accounts and Passwords Queries, comments and issues relating to the administration of Windows Vista. (microsoft.public.windows.vista.administration_accounts_passwords)

I'm not an administrator when UAC enabled



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old December 14th 09, 05:29 PM posted to microsoft.public.windows.vista.administration_accounts_passwords
vic
external usenet poster
 
Posts: 18
Default I'm not an administrator when UAC enabled

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

  #2 (permalink)  
Old December 15th 09, 12:48 AM posted to microsoft.public.windows.vista.administration_accounts_passwords
vic
external usenet poster
 
Posts: 18
Default I'm not an administrator when UAC enabled


"Vic" wrote in message
news
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

  #3 (permalink)  
Old December 15th 09, 12:48 AM posted to microsoft.public.windows.vista.administration_accounts_passwords
vic
external usenet poster
 
Posts: 18
Default I'm not an administrator when UAC enabled


"Vic" wrote in message
news
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

 




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:00 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2012 Vista Banter.
The comments are property of their posters.