Share via

SQL Installation on Remote Server

Kim Johannes 0 Reputation points
2023-09-06T12:36:49.0433333+00:00

Hello Experts

I'm having some trouble with installing a SQL Server on a Remote Server. I have the ISO on the Remote Server with the configurationfile.ini, that is used for the installation. I want to start the setup.exe with PowerShell and I start the installation with:

Invoke-Command -ComputerName $remoteServer -ScriptBlock {
    param (
        $remoteCommand
    )
    Invoke-Expression -Command $remoteCommand
} -ArgumentList $remoteCommand

While the remoteCommand is

$remoteCommand = "\$remoteServer\c$\Users$currentUsername\Downloads\setup.exe /ConfigurationFile=$remoteConfigFile

Now for the problem. I get the error: Acces is denied for UpdateResult. I start the script as administrator, that has rights to access any directory and also has access to write anywhere. I have also disabled UAC and startet the service for Remote registry, since it looks like it has problems with writing in there. I can start the script locally without any problems and also writing registry keys is not a problem. Does someone have an idea what the problem could be? Here is also the summary.txt if it helps: Summary.txt

Thank you in advance and kind Regards

Johannes

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.