Use this commandlet to set Management Group global settings. You can use its companion, get-DefaultSetting, to return the current Management Group global settings.
Set Auto-Approve New Manually Installed Agents setting
Set-DefaultSetting ManagementServer\AutoApproveManuallyInstalledAgents true/false
You can configure other global settings in the same way. This commandlet accepts two parameters, in the form of a Name-Value pair.