SMS系列之六:利用SMS实现操作系统的补丁分发
2009-12-02 00:00:00 来源:WEB开发网核心提示: 文件内容如下:[SecurityVerbs(140551)]instanceofSMS_Query{Comments="AllWindowsServer2003sp1toupgradetoSP2";Expression="selectSMS_R_System.Nam
文件内容如下:
[SecurityVerbs(140551)]
instance of SMS_Query
{
Comments = "All Windows Server 2003 sp1 to upgrade to SP2";
Expression="select SMS_R_System.Name, SMS_R_System.SMSInstalledSites, SMS_G_System_OPERATING_SYSTEM.Caption, SMS_G_System_OPERATING_SYSTEM.CSDVersion from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_R_System.OperatingSystemNameandVersion like \"% Server 5.2\"";
LimitToCollectionID = "";
Name = "Computers ready for Windows 2003 SP2 Upgrade";
QueryID = "";
TargetClassName = "SMS_R_System";
};
导入查询
当我们创建完查询语句后,就可以在SMS管理工具中导入它。方法如下:
查看原图(大图)
点击查询----所有任务----导入对象,如图所示:
更多精彩
赞助商链接