Set Agent Proxy Default setting - SCOM 2012 R2
Run this on any server that has the SCOM Console installed.
add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client";
new-managementGroupConnection -ConnectionString:scomserver.domain.com;
set-location "OperationsManagerMonitoring::";
Set-DefaultSetting -Name HealthService\ProxyingEnabled -Value True
Totally stole this from the SCOM aficionado - Kevin Holman. His post is here
Cheers’ Dan
s