I am trying to unattend SQL Server remotely using Invoke-command. I can see the processes spawning on the system but it keeps failing with this error.
Exception type: Microsoft.SqlServer.Chainer.Infrastructure.ChainerInfrastructureException
Message:
There was an error generating the XML document.
Can you, please, specify what command are you trying to run?
$cred= Get-Credential
Invoke-command -computername ***** -scriptBlock {. D:\SQLSourceMedia\SQL_Server_2014_Standard\setup.exe /q /ACTION=Install /SQLSVCACCOUNT=****** /SQLSVCPASSWORD=**** /SQLSYSADMINACCOUNTS=****** /AGTSVCACCOUNT=****** /AGTSVCPASSWORD=**" /SAPWD= /IACCEPTSQLSERVERLICENSETERMS=TRUE /configurationFile=D:\Default\ConfigurationFile.ini}