[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1413
  • Last Modified:

Auto creating User DSN

Is there a way to auto-create 2 User DSN's anytime someone logs into a computer.  I do not want to use Visual Basic or anything wierd like that. I was hoping there was a way i could modify the default user in Windows or some kind of reg key I could export and then import to anyone that logs in.  
And for some reason System DSN's do not work. This is for a homegrown app that does not seem to like System DSN's.  
Also this all happening on a Terminal Server box, that no one has logged into yet.
0
shard26
Asked:
shard26
  • 3
  • 2
1 Solution
 
Henrik JohanssonSystems engineerCommented:
Export the necessary registry key in HKCU\SOFTWARE\ODBC\ODBC.ini and import it either through logon script running 'regedit/s regfile.reg' or use registry group policy preferences.
0
 
shard26Author Commented:
will that reg key include the password?
0
 
Henrik JohanssonSystems engineerCommented:
No, you'll get the servername and username, but not the password of the user.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
shard26Author Commented:
there is only one user. Everyone uses the same user and the same password for the DSN connection. Is there anyway to also populate the password?

0
 
Henrik JohanssonSystems engineerCommented:
No, the password isn't located in that registry key and it is propably also hashed/encrypted to avoid populating.

You can try to configure some part as System DSN. System and User DSN shall be merged when using DSN name.
0
 
ODOTServerCommented:
One workaround is set it up the way you want it under a new user.. reboot the server. logon to an admin ID... copy the profile that you set it up on into the default users profile. make sure you have "Show hidden files" turned on. Then logon and let the server create a new profile.

This works for me. It copies the password.

Profiles are under documents and settings.

use delprof to delete the profiles if you have to.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now