Making Gateway approval easier

I am right now deploying a lot of Gateway servers so to make the Gateway approval a little easier I wrote a little script.

There is probably some way of doing this even better, but here goes:

$MS = Read-Host “FQDN of the Management Server”
$GW = Read-Host “FQDN of the Gateway”
$Site = Read-Host “Name of the site”

& “Microsoft.EnterpriseManagement.GatewayApprovalTool.exe” /ManagementServerName=$MS /GateWayName=$GW /Site=$Site /Action=Create”

**Note:

** When using the GateWayApprovalTool you need to have Write Permissions on the SQL Instance that holds the OpsMgr database.

Written on November 18, 2010