1

I am working on a PowerShell script to add User DSN in ODBC. At this stage, I am able to add the Name, Platform, DSN type etc. But, I am stuck at enabling TCP/IP protocol under the Network tab and passing values to it.

My current script is,

Add-OdbcDsn -Name SQL -Platform "32-bit" -DriverName "Microsoft Access Driver (*.mdb)" -DsnType "User" -SetPropertyValue @("Servername=SQLServer", "UserID=SQLUser")

Could someone please guide me?

Thank you.

enter image description here

0

1 Answer 1

1

Solved it by using parameter "CommLinks".

So, the update script is

Add-OdbcDsn -Name SQL -Platform "32-bit" -DriverName "Microsoft Access Driver (*.mdb)" -DsnType "User" -SetPropertyValue @("Servername=SQLServer", "UserID=SQLUser", "CommLinks=SharedMemory,TCPIP{dobroadcast=no}")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.