Quantcast
Channel: Symantec Connect - Client Management Suite - Discussions
Viewing all articles
Browse latest Browse all 2021

SQL report with Computer and User information

$
0
0
I need a solution

Hello,

I am trying to create a report that has Computer name, Primary user, Email address, Display name, Last logon user, Model, machine Domain and user domain.

The important information is all computer names with the primary user and the email address of the primary user.  I am pulling the email information from AD and that is working.

When the report runs and I do a compare to what is on the report to what is in Altiris and I can tell that not all the machines are on the report. 

I don't know SQL,  A co-worker create the below qurey and they are not familar with the Altiris Database.

SELECT DISTINCT

                         dbo.vRM_Computer_Item.Guid, dbo.vRM_Computer_Item.Name, dbo.Inv_AeX_AC_Primary_User.[User] AS [Primary User], dbo.Inv_AeX_AC_Identification.[Last Logon User], dbo.Inv_HW_Logical_Device.Model,

                         dbo.Inv_HW_Logical_Device.Description, dbo.Inv_AeX_AC_Identification.Domain, dbo.Inv_Global_User_General_Details.[Display Name], dbo.Inv_Global_User_General_Details.Email

FROM            dbo.Inv_Global_User_General_Details INNER JOIN

                         dbo.Inv_Global_Windows_Users ON dbo.Inv_Global_User_General_Details._ResourceGuid = dbo.Inv_Global_Windows_Users._ResourceGuid INNER JOIN

                         dbo.vRM_Computer_Item INNER JOIN

                         dbo.Inv_HW_Logical_Device ON dbo.vRM_Computer_Item.Guid = dbo.Inv_HW_Logical_Device._ResourceGuid INNER JOIN

                         dbo.Inv_AeX_AC_Identification ON dbo.vRM_Computer_Item.Guid = dbo.Inv_AeX_AC_Identification._ResourceGuid INNER JOIN

                         dbo.Inv_AeX_AC_Primary_User ON dbo.vRM_Computer_Item.Guid = dbo.Inv_AeX_AC_Primary_User._ResourceGuid ON dbo.Inv_Global_Windows_Users.UserId = dbo.Inv_AeX_AC_Primary_User.[User]

WHERE        (dbo.Inv_HW_Logical_Device.Description = N'AT/AT Compatible')

0

Viewing all articles
Browse latest Browse all 2021

Trending Articles