MS SQL 2022 Express - silent installation (The object state property 'this.InstanceId' is null/empty.)

Zdeněk Chládek 0 Reputation points
2024-03-24T15:21:23.72+00:00

Hi...
I am trying silent installation of MS SQL 2022 Express:
SETUP.EXE /ACTION="Install" /Q /IACCEPTSQLSERVERLICENSETERMS /ENU=True /FEATURES=SQL /INSTANCENAME=INFO21 SAPWD=mydog
but it returns:
The object state property 'this.InstanceId' is null/empty.

Why, when INSTANCEID is optional parameter?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,646 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zdeněk Chládek 0 Reputation points
    2024-03-24T16:41:28.8333333+00:00

    SOLVED
    I missed parameters

    /ASSYSADMINACCOUNTS
    /ADDCURRENTUSERASSQLADMIN

    with these parameters it works.

    0 comments No comments