We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Auto creating User DSN

shard26
shard26 asked
on
Medium Priority
1,421 Views
Last Modified: 2012-08-14
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.
Comment
Watch Question

Henrik JohanssonSystems engineer
Top Expert 2008

Commented:
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.

Author

Commented:
will that reg key include the password?
Henrik JohanssonSystems engineer
Top Expert 2008

Commented:
No, you'll get the servername and username, but not the password of the user.

Author

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?

Systems engineer
Top Expert 2008
Commented:
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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.