SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In SCCM, I need either WQL (or) SQL query to know the IP address, IP subnet and DNS information of all my devices.
Greetings,
To collect IP address, IP subnet, and DNS information of all devices in SCCM, you can use a combination of WQL and SQL queries.
SELECT
SMS_R_System.Name AS 'Device Name',
SMS_R_System.IPAddresses AS 'IP Addresses',
SMS_R_System.IPSubnets AS 'IP Subnets',
SMS_R_System.DNSServerSearchOrder AS 'DNS Servers'
FROM
SMS_R_System
Note that the data returned by this query may vary depending on the information available in the SCCM database and the discovery methods configured in your environment.
Hope it helps!