Discussion Locked

SMS Query for Service Pack

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to run a query to find out what SP is installed on my fourhundred WINNT 4.0 PC's. Some have SP4 some have 6a. I have identified files like WINVER.EXE which has a date of 10-13-1996 for SP4 and 11-18-1999 for SP6a, but when I query on that date all 400 PC's come back with the earlier file(same)date. The same thing happens with any other file. Is there a better way? If so, what was your method?

6 replies

by tmaclennan

You must have SMS 1.2. SMS 2.0 has a canned query called "All Windows NT Systems with Service Pack 3" that can easily be changed to any version. Here is a copy of the query after I had edited it to look for Service Pack 5. The last line is the one you want.

select SMS_R_System.Name, SMS_R_System.SMSAssignedSites, SMS_R_System.Client, SMS_R_System.IPAddresses, SMS_R_System.IPSubnets, SMS_R_System.IPXAddresses, SMS_R_System.IPXNetworkNumbers, SMS_R_System.MACAddresses, SMS_R_System.OperatingSystemNameandVersion, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.LastLogonUserDomain, SMS_R_System.LastLogonUserName, SMS_R_System.AgentName, SMS_R_System.AgentSite, SMS_R_System.AgentTime, SMS_R_System.SNMPCommunityName, SMS_R_System.SystemRoles, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceId, SMS_R_System.ResourceNames, SMS_R_System.ResourceType, SMS_R_System.NetbiosName from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM as o on o.ResourceID = SMS_R_System.ResourceId where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT %4.0%" and o.CSDVersion like "%5%"

This discussion is closed to new replies.