Hi @Jason Steeves ,
Here is the script about deploying SCOM Agent Remotely:
$mma1 = New-Object -ComObject 'AgentConfigManager.MgmtSvcCfg'
$mma1.AddManagementGroup('test02' , 'om19.sc.com' , 5723)
if ($? -eq 0)
{
write-host "a new (but inactive) management group was added!"
}
$mma1.ReloadConfiguration()
For more details, we could refer to this following post, kindly focus on Alex's last reply.
https://learn.microsoft.com/en-us/answers/questions/534916/deploying-scom-agent-remotely-via-sccm-scripts.html
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.