$SQLconnection = New-Object System.Data.SqlClient.SqlConnection $SQLconnection.ConnectionString = \"Server = MySQLservername\\MSSQLSERVER; Database = \"MYSQLDB\"; In
One way you will get this error is if you have your Network Profile is set to "Public". It needs to be "Private".
Network Profile
"Public"
"Private"
To change (or check).
Click Start->Settings->Network & Internet Click Status Click Change connection properties Under Network Profile select "Private"
Click Start->Settings->Network & Internet
Click Status Click Change connection properties Under Network Profile select "Private"