Home Service Manager

Has anybody successfully scripted SCSM installation?

Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭
I'm writing DSC for an SCSM environment, however I can't get the management server to install via command line.
Ref: https://docs.microsoft.com/en-gb/system-center/scsm/deploy-cmd-line?view=sc-sm-2019

The error code I get is -15 (InvalidCommandLine), which is not helpful.

Here's a snippet:

$ScsmArgs = "/Install:Server<br>/AcceptEula:YES<br>/RegisteredOwner:`"Owner Name`"<br>/RegisteredOrganization:`"Organisation Name`"<br>/ProductKey:$ScsmProductKey<br>/UseExistingDatabase:$($SqlInstance):ServiceManager<br>/ManagementGroupName:Scsm2019<br>/AdminRoleGroup:Domain\AdminGroupName<br>/ServiceRunUnderAccount:Domain\ScsmServiceAccount\Password<br>/WorkflowAccount:Domain\ScsmWorkflowAccount\Password<br>/CustomerExperienceImprovementProgram:NO<br>/Silent"<br><br>$Process = Start-Process -FilePath "$LocalInstallPath\Setup.exe" -PassThru -Wait -ArgumentList $ScsmArgs<br>$Process.ExitCode<br><br>
Any ideas?

Best Answer

  • Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭
    Accepted Answer
    Nevermind. I forgot the logs go to C:\Users\<user>\AppData\Local\Temp.

    There are undocumented required parameters...

Answers

  • Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭
    Accepted Answer
    Nevermind. I forgot the logs go to C:\Users\<user>\AppData\Local\Temp.

    There are undocumented required parameters...
  • Brett_MoffettBrett_Moffett Cireson PACE Super IT Monkey ✭✭✭✭✭
    Hi @Leigh_Kilday, I've written a bunch more around automating a SCSM environment install and configuration.
    Hit me up via e-mail if you would like to discuss further.
Sign In or Register to comment.