I am trying to create new ODBC DSN connctions but untrrusted using a user name & password.
I cant figure how to do that, cant find any documentation or articles with that demonstrated.
Looking for some guidance, help or examples. Thanks.
Ive used this to create the System DSN but of course no user name & pwd.
Have you tried using Get-Credential to prompt for the user and password values? Or alternatively using a stored SecureString value? Then you could add 'user=' and 'password=' with appropriate variables to the SetPropertyValue paramter.