question

Mario2286-5314 avatar image
0 Votes"
Mario2286-5314 asked ·

Install-dbainstance (dbatools) getting error

I m trying to install SQL server 2014 in one of my server using dbatools and the command as below but i m getting this error as attach. Any idea why getting this error

Install-DbaInstance -Version 2014 -path C:\jack\en -InstancePath D:\SQLserver -DataPath F:\data: -LogPath F:\Log: -Restart



78573-image.png



78593-image.png


sql-server-generalwindows-server-powershell
image.png (66.4 KiB)
image.png (120.3 KiB)
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Mario2286-5314,
Was your issue solved?
Did the answer help you?
Please feel free to let us know if you have any other question.
If the answer is helpful, you could kindly accept it as answer.
Best Regards,
Amelia

0 Votes 0 ·

1 Answer

AmeliaGu-msft avatar image
0 Votes"
AmeliaGu-msft answered ·

Hi Mario2286-5314,

Could you please try to add the -feature parameter to the command?

0x8007000B An attempt was made to load a program with an incorrect format.

Could you please check if .NET Framework 4.5 and ASP.NET 4.5 are enabled?
Since I don’t know much about dbatools, I suggest you open a thread on dbatools github to get better help.
In addition,you also can install SQL Server using the Installation Wizard GUI launched from the setup.exe setup media, or running a SQL Server installation from the command prompt. Please refer to SQL Server 2014 Step by Step: Installation and SQL Server installation which might help.

Best Regards,
Amelia


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread



·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.