Hi,
We are trying to automate the installation process of SQL-server.
The script generates a configurationfile.ini and copies it to the destination server.
Then the script, in short, runs this from our management server:
invoke-command -computername <destionationserver> -scriptblock { F:\setup.exe /configurationfile=C:\temp\configurationfile.ini}
What I have noticed is that if the configurationfile.ini contains AD-accounts as serviceaccounts for the engine and agent. The remote installation fails with the error:
"""
There was an error generating the XML document.
The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation.
"""
If the configurationfile.ini contains regular Local system accounts as service accounts for the engine and agent then it works fine.
BUT, if I log in to the destionation server with RDP and then run the script from the management server with AD-accounts as service accounts, it works!
Does anybody have a solution for this? Can delegation in AD be used to solve this? Can you not install SQL server remotely with powershell?
In the end we would like it to work with a service account in AD to run this script from an automation service (like orchestrator).
Thanks!
/Daniel