I was trying to run some commands(Ex: get-odbcdsn) in powershell version 2.0 and it throws an error:
The term ‘get-odbcdsn’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:12
- get-odbcdsn <<<<
- CategoryInfo : ObjectNotFound: (get-odbcdsn:String) , CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
But same command i was runing it in powershell version 3.0 and it works
I want to set the DB using set-odbcdsn on windows server 2008 r2 with below command
Set-OdbcDsn -Name "bwise_dwh" -DsnType "System" -Platform "64-bit" -SetPropertyValue "Database=bwise_dwh_dmz"
but it is not working in windows server 2008 r2 but it is working in windows server 2012