0

I'm trying to achieve automatic TFS synchronization with SCOM. It works as per https://technet.microsoft.com/en-us/library/jj899887.aspx. I.e., this works:

enter image description here

I would, however, like to only enable this for a group of certain windows servers. But I'm unable to do this. My approach is to disable the TFS Work Item Creation Rule for the TFS Connector class, but enable it for the group in question - like this:

enter image description here

That doesn't work, alas - and it even prevents TFS synchronization when manually setting an alart to 'assign to enginnering'-status, which worked fine before.

I've tried various approaches but my efforts have come to naught. How can I enable the TFS Work Item Creation Rule for just the windows servers I've listed explicitly in my 'ITU-morten-testgruppe' group?

4

1 回答 1

0

我正在关闭这个问题 - 似乎无法覆盖组的 TFS 工作项创建规则。

我的目标 - 只为特定警报创建工作项 - 似乎通过触发自定义 powershell 脚本来完成,这个页面: http: //blog.coretech.dk/kra/changeing-alert-resolution-state-automatically/

但是,我确实必须将脚本从上面的页面更改为:

#Read out the RMS name
$objCompSys = Get-WmiObject win32_computersystem
$rootMS = $objCompSys.name+"."+$objCompSys.domain

$ResolutionState = 248
#Initializing the Ops Mgr 2007 Powershell provider
add-pssnapin “Microsoft.EnterpriseManagement.OperationsManager.Client";
set-location “OperationsManagerMonitoring::";
new-managementGroupConnection -ConnectionString:$rootMS;
set-location $rootMS;
$Alerts = get-alert -criteria "ResolutionState = 0 AND Severity = 1 AND Name LIKE 'ITU%'"

foreach($Alert in $Alerts)
{
$Alert.Name

$Alert.ResolutionState = $ResolutionState
$Alert.Update("Resolution State changed automatically by the notificaton")

}

请注意,上述脚本无法使用标准的 powershell 提示符进行测试 - 它必须通过“操作管理器 shell”进行测试。

希望这可以帮助处于相同情况的其他人。

于 2015-10-20T06:49:02.423 回答