/build/static/layout/Breadcrumb_cap_w.png

Scripting DSN's

I know how to use the registry to create DSN's under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI and have been doing it for years. We are jumping into 64 bit/Win 7 and converting a lot of old scripts to powershell. Does anyone know of a simpler way to do it in powershell than simpley adding the registry keyes?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 11 years ago
Red Belt
0
Er...how much simpler can it be than adding registry data?

I'm still a bit green with PS but, AFAIK, there is no ODBC-specific stuff, except what's in .Net, which PS can access in a pretty straightforward way. Whether anyone could describe that as "easy" compared to registry access is open to debate.
Posted by: sbequette 11 years ago
Orange Belt
0
It is being drilled into my head that Powershell can make life so much better. Was just poking around to see if powershell made this easier also.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ