ConfigMgr Clients not upgraded to new ConfigMgr 2012

1

select Name,ClientVersion,ResourceDomainORWorkgroup,LastLogonUserDomain,LastLogonUserName,ADSiteName,IPAddresses,ResourceId,ResourceType from SMS_R_System where Client=1andClientVersion<'5.00'andClientType!=3