Post Installation actions

Mar 1, 2014 at 2:12 PM
I've created a new System Center Operations Manager deployment script for AutomatedLab module.

For this deployment to work ok, the SQLServerAgent Service on the SQL Server needs to be set to automatic and started.

This can be done using PowerShell via the following commando's:
Set-Service -name SQLServerAgent -StartupType Automatic
start-service -name SQLServerAgent

But how should I call these commands? I see the following options:
  1. Adding it to the Labmachine definition using the Get-LabPostInstallationActivity and -PostInstallationActivity parameter of the Add-LabMachineDefinition
  2. Using the Invoke-LabPostInstallActivity function
Or are the better ways?

Stefan Stranger