Has anybody successfully scripted SCSM installation?
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_Kilday Member Ninja IT Monkey ✭✭✭✭Nevermind. I forgot the logs go to C:\Users\<user>\AppData\Local\Temp.
There are undocumented required parameters...0
Answers
There are undocumented required parameters...
Hit me up via e-mail if you would like to discuss further.