只看我的SO配置文件,看到这个线程我以前回复..我最近需要做同样的事情,并博客它!
SELECT
CASE [Severity]
WHEN '1073741824' THEN 'Informational'
WHEN '-1073741824' THEN 'Error'
WHEN '-2147483648' THEN 'Warning'
END AS Severity
,[SiteCode]
,[Time]
,[MachineName]
,[Component]
,[MessageID],
CASE [MessageID]
WHEN '11124' THEN ('The task sequence execution engine started the group (' + [InsStrValue3] + ').')
WHEN '11127' THEN ('The task sequence execution engine successfully completed the group (' + [InsStrValue3] + ').')
WHEN '11128' THEN ('The task sequence execution engine skipped the disabled action (' + [InsStrValue2] + ') in the group (' + [InsStrValue3] + ').')
WHEN '11130' THEN ('The task sequence execution engine skipped the action (' + [InsStrValue2] + ') in the group (' + [InsStrValue3] + ').')
WHEN '11134' THEN ('The task sequence execution engine successfully completed the action (' + [InsStrValue2] + ') in the group (' + [InsStrValue3] + ') with exit code ' + [InsStrValue4] + ' Action output: ' + (COALESCE([InsStrValue5], '') + '' + COALESCE([InsStrValue6], '') + '' + COALESCE([InsStrValue7],'')+ COALESCE([InsStrValue8],'')+ COALESCE([InsStrValue9],'')+ COALESCE([InsStrValue10],'')))
WHEN '11135' THEN ('The task sequence execution engine failed execuiting the action (' + [InsStrValue2] + ') in the group (' + [InsStrValue3] + ') with exit code ' + [InsStrValue4] + ' Action output: ' + (COALESCE([InsStrValue5], '') + '' + COALESCE([InsStrValue6], '') + '' + COALESCE([InsStrValue7],'')+ COALESCE([InsStrValue8],'')+ COALESCE([InsStrValue9],'')+ COALESCE([InsStrValue10],'')))
WHEN '11138' THEN ('The task sequence execution engine ignored execution failure of the action (' + [InsStrValue2] + ') in the group (' + [InsStrValue3] + ').')
WHEN '11140' THEN ('The task sequence execution engine started execution of a task sequence.')
WHEN '11142' THEN ('The task sequence execution engine performed a system reboot initiated by the action (' + [InsStrValue2] + ') in the group (' + [InsStrValue3] + ').')
WHEN '11144' THEN ('The task sequence execution engine from a non-client started execution of a task sequence.')
END AS Description
FROM [CM_SiteCode].[dbo].[vStatusMessagesWithStrings] (NOLOCK)
WHERE MachineName = 'MyServerNameHere'
AND Component in ('Task Sequence Engine','Task Sequence Manager','Task Sequence Action')
AND Time BETWEEN '2015-04-02 08:30' AND GETDATE()
ORDER BY Time DESC
在这里看到http://blog.wallis2000.co.uk/2015/04/status-messages-from-sccm-task.html
与特定消息ID相关联的(翻译)格式的字符串不是在SMS_StatusMessage,SMS_StatMsgInsStrings,或SMS_StatMsgAttributes。这些只包含消息的有用数据(例如AdvertisementID's等)。格式字符串是通过WQL查询以外的其他方式获得的。有关获取格式字符串的一些线索,请参阅[SMS状态消息 - ASP以显示所有消息标识及其含义](http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/21/117428.aspx) 。 – mojo 2014-11-07 12:58:46
FWIW,翻译的消息似乎在SCCM控制台安装目录中的DLL中。对于2012/US-English,它是' \ AdminUI \ bin \ i386 \ 00000409 \ srvmsgs.dll'。我认为2007年的控制台将它们保存在类似的位置,“AdminConsole \ bin \ ... \ srvmsgs.dll”。 –
mojo
2014-11-07 18:09:27