SQL query


Need SQL query to fetch machine information with country,department and department.

Please help.

solved 0
aamir ansari 4 weeks 2021-09-22T19:13:41+05:30 4 Answers 13 views Beginner 0

Answers ( 4 )


    Query mentioned below.

    SELECT SYS.User_Name0 as UserName, USR.Mail0 as ‘EMail ID’,
    USR.company0 as ‘Company’,
    USR.department0 as ‘Department’,
    SYS.Netbios_Name0 as Machine,
    Operating_System_Name_and0 as OS FROM v_R_System SYS
    JOIN v_R_User USR on USR.User_Name0 = SYS.User_Name0
    –WHERE SYS.User_Name0 LIKE ‘Username’
    ORDER BY SYS.User_Name0, SYS.Netbios_Name0


    I got such query , thank you

  1. country,department, and department are not discovered by default in SCCM. Have you already collecting these details into SCCM? But you can use AD data and discovery to get this working using the following guide


    Best answer

Leave an answer

Sorry, you do not have a permission to answer to this question .