PowerTip: Use PowerShell to Document DSN Names

PowerTip: Use PowerShell to Document DSN Names

  • Comments 3
  • Likes

Summary: Learn how to easily document DSN names by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find what DSN names are defined on my system?

Hey, Scripting Guy! Answer On your computer running Windows 8.1, use the Get-OdbcDsn function.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • This doesn't seem to work on XP.

  • You will only find this cmdlet and the Wdac module on Windows 8, 8.1, Server 2012, and Server 2012 R2.