Partager via


How to change the SCOM agent heartbeat interval in PowerShell

<!--[if lt IE 9]>

<![endif]-->

Comments

  • Anonymous
    July 28, 2016
    Hi Kevin,Shouldn't ApplyChanges be part of the foreach loop in the second example?Anyhow, i used this ,based on your blog, to apply this for a group of servers :)$computers = Get-SCOMGroup -DisplayName "somegroupname" | Get-SCOMClassInstance$agents = @()foreach ($computer in $computers) { $agent = get-scomagent | where {$_.DisplayName -eq $computer} $agents += $agent }foreach ($agent in $agents) { $agent.HeartbeatInterval = 120 $agent.ApplyChanges() }
  • Anonymous
    December 05, 2016
    Hi i have a question regarding the agent on servers. How can i tell which version number equals CU9,8,7 etc? When i run get-scomagent in the version number field i see 7.1.10184... thanks.
    • Anonymous
      December 05, 2016
      I cover this question in all my blog posts on UR’s. The agent version number is a major version number and does not reflect UR level.To see UR level – we have a specific view in the console for that already…. see one of my UR posts for the example.
      • Anonymous
        December 05, 2016
        Thanks Kevin.