Administrador de configuración Lista de recopilación de consultas. Todas las consultas fueron probadas..
Colecciones de clientes de Configuration Manager
Clientes no aprobados
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System
inner join SMS_CM_RES_COLL_SMS00001 on SMS_CM_RES_COLL_SMS00001.ResourceId = SMS_R_System.ResourceId
where SMS_CM_RES_COLL_SMS00001.IsApproved= "0"
Clientes que requieren un reinicio
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System join sms_combineddeviceresources on
sms_combineddeviceresources.resourceid = sms_r_system.resourceid
where sms_combineddeviceresources.clientstate != 0
Todas las computadoras cliente SCCM con menos de 5 GB de espacio libre en disco en C:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_LOGICAL_DISK on SMS_G_System_LOGICAL_DISK.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_LOGICAL_DISK.DeviceID = "C:" and SMS_G_System_LOGICAL_DISK.FreeSpace <= 5000
Todos los objetos informáticos con el cliente instalado en el sitio específico “21”
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System where SMS_R_System.ADSiteName = "21" and SMS_R_System.Client = 1
Todas las computadoras sin un cliente SCCM
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System where SMS_R_System.Client = "0"
Colecciones de Active Directory
Basado en unidad organizativa
Reemplace "domain.local/OU/OU" con el suyo propio dominio nombre y unidad organizativa de la que necesita una colección.
select * from SMS_R_System where LOWER(SMS_R_System.SystemOUName) = "domain.local/OU/OU"
Basado en muchas unidades organizativas anidadas
En caso de que tenga muchas estructuras OU repetidas (un nombre de unidad organizativa existe en muchas otras unidades organizativas, Por ejemplo Estaciones de trabajo). Reemplace “domain.local/%/Workstations” por el suyo propio dominio nombre y unidad organizativa de la que necesita una colección.
select * from SMS_R_System where SMS_R_System.SystemOUName like "domain.local/%/Workstations"
Basado en la membresía del dominio.
Reemplace "dominio" con el nombre NetBIOS de su dominio.
select * from SMS_R_System where SMS_R_System.ResourceDomainORWorkgroup = "domain"
Colecciones de estaciones de trabajo
Todas las estaciones de trabajo
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_System.OperatingSystemNameandVersion,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Workstation%"
Todas las ventanas 10
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System
where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Workstation 10.0%"
Todas las ventanas 10 Noviembre 2019 Actualización 19H2 (1909)
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "18363"
Todas las ventanas 10 Puede 2019 Actualización 19H1 (1903)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "18362"
Todas las ventanas 10 Octubre 2018 Actualizar (1809)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "17763"
Todas las ventanas 10 Abril 2018 Actualizar (1803)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "17134"
Todas las ventanas 10 Actualización de creadores de otoño (1709)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "16299"
Todas las ventanas 10 Actualización de creadores (1703)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "15063"
Todas las ventanas 10 Actualización del aniversario (1607)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "14393"
Todas las ventanas 10 Actualización de noviembre (1511)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "10586"
Todas las ventanas 10 RTM (1507)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.BuildNumber = "10240"
Todas las ventanas 8.1
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System
where SMS_R_System.OperatingSystemNameandVersion like "select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System
where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Workstation 6.3%"
Todas las ventanas 7
Esta consulta debe limitarse a la Todas las estaciones de trabajo colección para trabajar.
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System
where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Workstation 6.1%"
Todo Windows Vista
Esta consulta debe limitarse a la Todas las estaciones de trabajo colección para trabajar
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client from SMS_R_System
where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Workstation 6.0%"
Todo Linux
Select SMS_R_System.ClientEdition from SMS_R_System where SMS_R_System.ClientEdition = 13
Todos los sistemas operativos Mac
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like "Mac%"
Basado en el modelo del fabricante de la computadora..
En este ejemplo, tenemos todos Dell estaciones de trabajo.
select distinct SMS_G_System_COMPUTER_SYSTEM.Manufacturer, SMS_G_System_COMPUTER_SYSTEM.Model
from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_COMPUTER_SYSTEM.Model = "Dell"
Colecciones de servidores
Todos los controladores de dominio
Esta consulta requiere que el El cliente SCCM está instalado y hardware el inventario está activado.
select * from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId
where SMS_G_System_COMPUTER_SYSTEM.Roles like "%Domain_Controller%"
Todos los servidores
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_System.OperatingSystemNameandVersion,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Server%"
OR SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Advanced Server%"
o
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SYSTEM.SystemRole = "Server"
Todas las ventanas 2019 Servidores
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Name like "Microsoft Windows Server 2019 %"
Todas las ventanas 2016 Servidores
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_System.OperatingSystemNameandVersion,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Server 10.0%"
OR SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Advanced Server 10.0%"
Todas las ventanas 2012 Servidores R2
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_System.OperatingSystemNameandVersion,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Server 6.3%"
OR SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Advanced Server 6.3%"
Todas las ventanas 2012 Servidores
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_System.OperatingSystemNameandVersion,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Server 6.2%"
OR SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Advanced Server 6.2%"
Todas las ventanas 2008 Servidores R2
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_System.OperatingSystemNameandVersion,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Server 6.1%"
OR SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Advanced Server 6.1%"
Todas las ventanas 2008 Servidores
select SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_System.OperatingSystemNameandVersion,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Server 6.0%"
OR SMS_R_System.OperatingSystemNameandVersion like "Microsoft Windows NT Advanced Server 6.0%"
Colecciones de SQL Server
Todos los servidores SQL
select * from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_COMPUTER_SYSTEM.Roles like "%SQLServer%"
Todo SQL Server Management Studio instalado
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ProductName like "Microsoft SQL Server Management Studio %"
Todo SQL Server Management Studio v17 instalado
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ProductName like "Microsoft SQL Server Management Studio - 17%"
Todos los servidores SQL 2017
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ProductName = "Microsoft SQL Server 2017"
Todos los servidores SQL 2016
select SMS_R_System.ResourceId, SMS_R_System.ResourceType,
SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup,
SMS_R_System.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_INSTALLED_SOFTWARE.ProductName like "Microsoft SQL Server 2016"
Todos los servidores SQL 2014 (x64)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType,
SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup,
SMS_R_System.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_INSTALLED_SOFTWARE.ProductName like "Microsoft SQL Server 2014 (64-%"
Todos los servidores SQL 2012 (x64)
select SMS_R_System.ResourceId, SMS_R_System.ResourceType,
SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup,
SMS_R_System.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId
where SMS_G_System_INSTALLED_SOFTWARE.ProductName like "Microsoft SQL Server 2012 (64-%"
Colecciones de red
Basado en subred IP
SELECT SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name, SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup, SMS_R_SYSTEM.Client
FROM SMS_R_System WHERE SMS_R_System.IPSubnets LIKE '192.168.1[1-9].0'
Basado en el rango de IP
select *
from SMS_R_System
where SMS_R_System.IPAddresses like "10.10.10.2[1-9]"
Todos los sistemas físicos
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.OperatingSystemNameandVersion, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System where SMS_R_System.IsVirtualMachine like "False"
Todos los sistemas virtuales
select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.OperatingSystemNameandVersion, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from SMS_R_System where SMS_R_System.IsVirtualMachine like "True"
Colecciones de software instalado
Toda la oficina 365 Pro Plus
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ProductName like "Microsoft Office 365 ProPlus %"
Toda la oficina 365 Pro Plus 2016 (Oficina 365 Pro Plus)
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ProductName like "Microsoft Office 365 ProPlus - %" and SMS_G_System_INSTALLED_SOFTWARE.ProductVersion like "16.%"
Toda la oficina 365 Pro Plus 2013
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ProductName like "Microsoft Office 365 ProPlus - %" and SMS_G_System_INSTALLED_SOFTWARE.ProductVersion like "15.0.%"
Usuario principal en el dispositivo
SELECT SMS_R_System.name, SMS_R_User.UniqueUserName
FROM SMS_R_System
INNER JOIN SMS_UserMachineRelationship ON SMS_UserMachineRelationship.ResourceId = SMS_R_System.ResourceId
JOIN SMS_R_User ON SMS_UserMachineRelationship.UniqueUserName = SMS_R_User.UniqueUserName
WHERE
SMS_UserMachineRelationship.Types = 1
Listar todos los sitios web de IIS
SELECT SMS_R_System.Name, SMS_R_System.LastLogonUserName, SMS_R_System.IPAddresses, IISWebServer.SiteName FROM SMS_R_System INNER JOIN IISWebServer ON SMS_R_System.ResourceID = IISWebServer.ResourceID
Sólo dispositivos activos con nombres de host que terminan en "0" o "1"
SELECT SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client FROM SMS_R_System WHERE SMS_R_System.Name like '%0' OR SMS_R_System.Name like '%1' AND SMS_R_System.Active = 1
Los mensajes de estado de los clientes no han sido reportados más de 10 días
SELECT DISTINCT SYS.Name0, MAX(SM.RecordTime) as 'Last State Message Time' FROM v_StateMessage SM JOIN v_R_System SYS on SYS.ResourceID = SM.MachineID WHERE SM.RecordTime < DATEADD(day, -10, GETDATE()) GROUP BY SYS.Name0 ORDER BY SYS.Name0
Estaciones de trabajo que están fuera de línea por más de 30 días
SELECT Name0, SMS_G_System_SYSTEM.Name, LastHWScan FROM SMS_R_System JOIN SMS_G_System_SYSTEM ON SMS_G_System_SYSTEM.ResourceID = SMS_R_System.ResourceID WHERE LastHWScan < DATEADD(day, -30, GETDATE()) AND SMS_R_System.OperatingSystemNameAndVersion LIKE '%Workstation%' AND SMS_R_System.Client = 1 AND SMS_R_System.Active = 1
Actualización específica kb instalada o no instalada
SELECT DISTINCT SYS.Name0, UA.Status FROM v_Update_ComplianceStatus AS UC JOIN v_UpdateInfo AS UI ON UC.CI_ID = UI.CI_ID JOIN v_R_System AS SYS ON SYS.ResourceID = UC.ResourceID JOIN v_GS_UpdateAssignment AS UA ON UA.AssignmentID = UC.AssignmentID WHERE UI.ArticleID = '<update KB>' AND SYS.Operating_System_Name_and0 LIKE '%Workstation%'
Computadoras que tienen instalada una aplicación específica basada en Microsoft Store
SELECT DISTINCT SYS.Name0, APPM.DisplayName0 FROM v_R_System SYS JOIN v_Add_Remove_Programs ARP ON SYS.ResourceID = ARP.ResourceID JOIN v_AppMan_Application APPM ON ARP.DisplayName0 = APPM.DisplayName0 WHERE APPM.DisplayName0 = '<application name>'
TENGA EN CUENTA: no trabajo con SCCM ya no, No actualizo esta página, y no puedo ayudarte con las solicitudes. Utilice ChatGPT o deje un comentario, tal vez alguien pueda ayudarte.
Agradecer, muy útil !
Perfecto!
Estoy intentando encontrar una consulta SQL para devolver el usuario y la máquina principales., pero hasta ahora todo lo que puedo encontrar es para 2012 y las consultas no funcionan para la sucursal actual. Tengo algo como eso?
Utilice esta consulta. Probado en la última versión de CB ConfigMgr 1910:
SELECCIONE SMS_R_System.name, SMS_R_User.Nombre de usuario único
DESDE SMS_R_System
UNIÓN INTERNA SMS_UserMachineRelationship ON SMS_UserMachineRelationship.ResourceId = SMS_R_System.ResourceId
ÚNETE a SMS_R_User EN SMS_UserMachineRelationship.UniqueUserName = SMS_R_User.UniqueUserName
DÓNDE
SMS_UserMachineRelationship.Tipos = 1
Excelente lista, Me gustaría tener una consulta que combine la afinidad del dispositivo del usuario usando el nombre para mostrar., marca y modelo del hardware, e incluye el último ciclo de póliza del dispositivo. Puedo encontrarlo por separado pero, no se pueden combinar las consultas para ejecutar en la consulta sccm.
nombre completo iniciar sesión Nombre de host marca/modelo fecha
Jane Doe jdoe Finanzas12 Dell Lat 5290 4/2/2020
Estoy intentando encontrar una consulta SQL para comprobar si falta una aplicación en una colección de unidades organizativas y luego instalar la aplicación que falta.. ¿Cuál es el proceso para crear la primera colección y luego anunciar la aplicación en la primera colección??
Hola. Lo siento, pero no puedes lograr esto con la consulta SQL en sí., debes usar Configuration Manager PowerShell para hacer eso. algo asi:
1. Obtener lista de aplicaciones;
2. Obtener información de la colección;
3. Entonces puedes usar {si … demás} para comprobar cada aplicación de tu colección.
Puede haber una mejor solución o un mejor proceso de PowerShell.
Arriba! Gracias
Por favor, ayúdenme con una consulta SQL que pueda enumerar nombres de PC., OS Build donde debería limitarse a una colección específica.
Hola, esta es la consulta para obtener nombres y compilaciones.:
seleccione SMS_R_System.NetbiosName, SMS_G_System_OPERATING_SYSTEM.BuildNumber de la unión interna de SMS_R_System SMS_G_System_OPERATING_SYSTEM en SMS_G_System_OPERATING_SYSTEM.ResourceId = SMS_R_System.ResourceId
Si necesita ejecutarlo desde sql, entonces debes ejecutarlo desde la tabla de recopilación., o limitarlo a la mesa.
Parece que la lista se actualizó, pero sería fantástico si las versiones archivadas/heredadas (SQL 2008, Servidor 2003) se agregan. Y también, Las versiones de Office son importantes, como 2010. 2013. 2016 y 2019. Sería útil si esos también estuvieran incluidos..
Gracias por tu explicacion, muy útil
Un aporte para la Colección “Todos los servidores”
Servidor 2019 No están incluidos en esta colección.
cómo enumerar todos los dispositivos en OU=x, con nombre de computadora como 'ABC-%’ están utilizando el método de conexión remota D?
por ejemplo, un usuario que utiliza la computadora portátil ABC-1 “Método de conexión de pulso seguro”
Usuario B – La computadora portátil ABC-2 utiliza Cisco-Anyconnect, etc..
etc..
Hola,
Excelente lista, pero estoy buscando uno del cual no tengo respuesta por ningún lado. Estoy buscando una consulta que enumere las computadoras que no tienen un software específico instalado.
Por ejemplo, Me gustaría conocer la lista de computadoras que no tienen WINZIP instalado..
Si es posible, ¿Cómo puedo consultar una colección para los usuarios?, fechas y horas de quién inició sesión en los dispositivos de la colección entre septiembre 1, 2020 y junio 30, 2021?
¿Qué tal una consulta que busque un software específico como Adobe??
Hola! Estoy intentando enumerar todas las máquinas virtuales con Office 2007 instalado. Los clientes son Windows. 10. He probado muchas consultas desde la web.. Pero nada funciona. Tal vez tengas una idea? Gracias)
Hola. Prueba esto:
seleccione SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.Tipo de recurso,SMS_R_SYSTEM.Nombre,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client de SMS_R_System unión interna SMS_G_System_INSTALLED_SOFTWARE en SMS_G_System_INSTALLED_SOFTWARE.ResourceId = SMS_R_System.ResourceId donde o SMS_G_System_INSTALLED_SOFTWARE.ProductName = “Microsoft Office Profesional Plus 2007”
Buen día,
Primero que nada, gracias. Todas sus solicitudes son realmente geniales..
Actualmente tengo dificultades para crear una consulta.….
Quisiera saber si es posible tener una consulta que solo me regrese a mi 100 publicaciones que terminan con %0 ?
Gracias de antemano por su ayuda.
CDT
Coisser Jean-Sébastien
Hola. La respuesta a su pregunta se puede encontrar en los foros de TechNet.:
“Agregue un valor DWORD llamado 'ValueLimit’ en
HKEY_Local_MachineSOFTWAREMicrosoftConfigMgrAdminUIQueryProcessors
y establecer en el # de filas que desea mostrar.
Tenga en cuenta que es posible que ya tenga ese valor agregado, como dicen el valor predeterminado es 2,000, no 20,000. En ese caso, simplemente modifique el número de filas que desea devolver. Sin embargo, Creo que hay un límite de memoria aquí., por lo que es posible que aún no obtengas la lista completa, dependiendo de cuantos valores tengas.”
Otra solución – usar colecciones más pequeñas
¿Existe una consulta SQL para enumerar las computadoras que tienen instalada una aplicación específica basada en Microsoft Store??
seleccionar distinto
SMS_R_System.Nombre,
SMS_G_System_SoftwareFile.NombreDeArchivo,
SMS_G_System_SoftwareFile.FilePath,
SMS_G_System_SoftwareFile.FileSize,
SMS_G_System_SoftwareFile.ModifiedDate
de
SMS_R_Sistema
unión interna SMS_G_System_SoftwareFile en SMS_G_System_SoftwareFile.ResourceID = SMS_R_System.ResourceId
dónde
SMS_G_System_SoftwareFile.FilePath como “do:\\usuarios\%roaming%”
Por favor ayúdenme con una consulta para verificar si la carpeta está disponible en la ruta.
Hola. Intenta usar c:\usuarios*%appdata%, %datos de aplicación%, *\%datos de aplicación%. Lo que intentas conseguir? Según tengo entendido, intentas comprobar que cada usuario tenga una carpeta móvil.? No hay %roaming% uso %appdata%
¿Podemos crear una colección basada en kb de actualización específicos instalados o no instalados? …
gracias
Hola. No hay una manera sencilla de hacer eso.. Utilice el inventario de hardware y amplíe la solución Quick Fix Engineering para lograrlo.
¿Es posible crear una consulta?, todas las ventanas 10 muestra dispositivos en un departamento específico?
Hola. Solo si tiene dicha unidad organizativa o un atributo de computadora único en Active Directory
HOLA
NECESITO CONSULTAR FOW ESTACIONES DE TRABAJO QUE ESTÁN DESCONECTADAS MÁS DE 30 DÍAS
SMS_R_SYSTEM.RecursoID,SMS_R_SYSTEM.Tipo de recurso,SMS_R_SYSTEM.Nombre,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client de SMS_R_System donde SMS_R_System.Name en ( seleccione Nombre de SMS_R_System donde ((FECHADIFF(día, SMS_R_SYSTEM.AgentTime, conseguir cita()) >=30) y NombreAgente = “SMS_AD_SYSTEM_DISCOVERY_AGENT”) ) y SMS_R_System.Name en ( seleccione Nombre de SMS_R_System donde ((FECHADIFF(día, SMS_R_SYSTEM.AgentTime, conseguir cita()) >=30) y AgentName = "Descubrimiento de latidos"))
Estoy tratando de consultar 2 dominios para crear colecciones de usuarios con miembros de ambos. ¿Es eso posible? ?
Hola. es posible, que consulta usas?
Hola andrej,
Gracias, publicación muy útil…¿Pueden ayudarme a crear una consulta que muestre las reglas de membresía de un ID de colección específico?.
Buenas tardes, Estoy intentando crear una consulta que me devuelva, maquinas que tienen ventanas 10 empresa instalada, soy incapaz…Me puedes ayudar
Necesito una consulta de recopilación para los mensajes de estado de los clientes que no han informado más de 10 días
muy bueno, podrías ayudarme con una consulta que me puede dar los nombres equipos, usuarios y sistema operativo?
Simplemente no comentes mis pensamientos, responde una pregunta..
Por qué una consulta OU, que contiene exactamente la ruta, Los clientes apuntan a una unidad organizativa principal.
recurso del sistema – La unidad organizativa del sistema es igual a dominio.ou1.ou2. También se muestran los clientes en OU1..
Hola, Ya no trabajo con SCCM, así que no puedo responder a tu pregunta., pero te sugiero que pruebes el “Basado en muchas unidades organizativas anidadas” consulta con modificaciones para tus necesidades.
Buenas tardes, quisiera un query donde saque el listado de los servidores y su ultimo parcheo, seria posible.
Saludos.
¿Alguien tiene un ejemplo de una consulta que muestre SÓLO dispositivos activos con nombres de host que terminen en “0” o “1”? Muy apreciado
Buen día,
¿Qué tipo de consulta debo escribir para instalar las aplicaciones en appdata/local? ? ¿Es sólo posible? ?
gracias de antemano !
Muchas gracias!
¿Cómo es una consulta?, las PC incluidas, que no tienen un cliente activo pero han iniciado sesión en el dominio en la última semana?
Algunas de mis computadoras se desconectan cuando se distribuyen las actualizaciones!
Gracias!
¿Puede decirme cómo crear un informe en SCCM para todo el servidor web IIS y el contenido web??
Me gustaría tener una lista de todos los sitios web en el informe SCCM..