Search


Sponsors

What agents report to management server?

Do you want to know to which agents report to a specific Management Server? Just execute the next code in your OpsMgr Command Shell.

Function GetSpecificAgents ([string]$managementserver)
{
write-host ""
write-host "The following servers have $managementserver as their primary management server:"
FOREACH ($i in get-agent)
{
IF ($i.PrimaryManagementServerName -eq $managementServer)
{
write-host $i.name
}
}
write-host ""
}
GetSpecificAgents "[fqdn of management server]"

Pete from SystemCenterForum mentiones that this will also work: get-agent | where-object {$_.PrimaryManagementServerName -eq ‘Mgmt Svr FQDN’} | ft name



  
Remember personal info?

Emoticons / Textile

Before sending a comment, you have to correctly answer a simple question you know the answer to. This is a countermeasure against automated spam bots.
 

  ( Register your username / Log in )

Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.