Hey Guys, first time posting here. I have several PS scripts that used to work accessing SQL servers on an untrusted domain. Several weeks ago they started failing with error below. I know the user ID and password are correct because they work if I'm on the server in the untrusted domain. I'm using a try/catch block and the error is contained in $_.Exception.ItemName. Are there any other ways to get to the real reason this isn't working or some event log on the server in the untrusted domain I could search? Code listed below. Error is happening on SMOserver.readerrorlog() . Any help is greatly appreciated!
Exception calling "ReadErrorLog" with "0" argument(s): "Failed to connect to server Data Source=Win-Servername-001.domain.hosting.int;User ID=sqllogin;Password=xxxxxxxx;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=False."