Skip to content

Install-DbaInstance Error: /q or /qs was not specified when running on Server Core. The installation cannot proceed.Β #9707

@steverezhener

Description

@steverezhener

Verified issue does not already exist?

I have searched and found no existing issue

What error did you receive?

Can't find an option to trigger/invoke Quiet=True for the setup.exe /q or /qs to work on Windows Core

Steps to Reproduce

# provide your command(s) executed pertaining to dbatools
Install-DbaInstance

# please include variable values (redacted or fake if needed) for reference

$cred = Get-Credential  -Credential domain\username1
$sa_cred = Get-Credential -Credential sa
$svcAcc_engine = Get-Credential -Credential domain\username2
$svcAcc_agent = Get-Credential -Credential domain\username3

# -- Splatting
$servers = "server_name"

$config = @{
    UPDATEENABLED = "True"
    UPDATESOURCE = "\\XYZ\SQLServer\2022\TESTED"
}

$features = "Engine","FullText" 
$start_time = Get-Date
$installparams = @{
    SqlInstance     = $servers
    Version         = 2022
    Verbose         = $true
    Confirm         = $false
    Credential      = $cred
    SaCredential    = $sa_cred
    Feature         = $features
    InstancePath    = "C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL"
    DataPath        = "C:\Data"
    LogPath         = "C:\Logs"
    TempPath        = "C:\Tempdb"
    BackupPath      = "C:\Backup"
    Path            = "\\XYZ\Microsoft\SQL Server\2022\Standard Edition\"
    AuthenticationMode = "Mixed"
    EngineCredential = $svcAcc_engine
    AgentCredential = $svcAcc_agent
    PerformVolumeMaintenanceTasks = $true
    Restart = $true
    Configuration   = $config
    
}
Install-DbaInstance @installparams
$end_time = Get-Date

$time_diff = New-TimeSpan $start_time $end_time

Write-Host "Run time is " $time_diff.ToString()



### Please confirm that you are running the most recent version of dbatools

2.1.31

### Other details or mentions

windows core needs /q or /qs added to setup.exe

### What PowerShell host was used when producing this error

Windows PowerShell ISE (powershell_ise.exe)

### PowerShell Host Version


Name                           Value                                                                                                                                                             
----                           -----                                                                                                                                                             
PSVersion                      5.1.17763.7434                                                                                                                                                    
PSEdition                      Desktop                                                                                                                                                           
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                           
BuildVersion                   10.0.17763.7434                                                                                                                                                   
CLRVersion                     4.0.30319.42000                                                                                                                                                   
WSManStackVersion              3.0                                                                                                                                                               
PSRemotingProtocolVersion      2.3                                                                                                                                                               
SerializationVersion           1.1.0.1                                                                                                                                                           




### SQL Server Edition and Build number

sql server 2022

### .NET Framework Version

.NET Framework 4.8.4775.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugs lifetriage requiredNew issue that has not been reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions