Joining Users to a PC

Use this query to join Users to PCs Select R.Name0, U.User_Name0, U.Full_User_Name0, U.Unique_User_Name0, U.Mail0 From dbo.v_R_System R INNER JOIN dbo.v_R_User U ON U.Unique_User_Name0 = R.User_Domain0 + ‘\’+ R.User_Name0 .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier New”, courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem […]

Video Card Details v2

For full details please see http://social.technet.microsoft.com/Forums/en-US/configmgrreporting/thread/c42ba8cf-02a5-4e2e-8d20-39b05a4a5740 select distinct R.Netbios_Name0 as ‘Name’, R.User_Name0 as ‘User’, CS.Manufacturer0 as ‘Manufacturer’, CS.Model0 as ‘Model’, BIOS.SerialNumber0 as ‘Serial’, SD.Name0 as ‘Processor’, RAM.TotalPhysicalMemory0 as ‘Memory’, VC.Name0 as ‘Video Card’, VC.VCRam as ‘Video Card RAM’ from dbo.v_R_System R inner join dbo.v_GS_X86_PC_MEMORY RAM on RAM.ResourceID = R.ResourceId inner join dbo.v_GS_COMPUTER_SYSTEM CS on CS.ResourceID […]

Video Card details

For full details please see http://social.technet.microsoft.com/Forums/en-US/configmgrreporting/thread/c42ba8cf-02a5-4e2e-8d20-39b05a4a5740 select distinct R.Netbios_Name0 as ‘Name’, R.User_Name0 as ‘User’, CS.Manufacturer0 as ‘Manufacturer’, CS.Model0 as ‘Model’, BIOS.SerialNumber0 as ‘Serial’, SD.Name0 as ‘Processor’, RAM.TotalPhysicalMemory0 as ‘Memory’, VC.Name0 as ‘Video Card’, Convert(VarChar, VC.AdapterRam0 / 1024) + ‘ MB’ as ‘Video Card RAM’ from dbo.v_R_System R inner join dbo.v_GS_X86_PC_MEMORY RAM on RAM.ResourceID = R.ResourceId […]

Video card with Sound card.

For full details please see http://social.technet.microsoft.com/Forums/en-US/configmgrreporting/thread/c42ba8cf-02a5-4e2e-8d20-39b05a4a5740   select distinct R.Netbios_Name0 as ‘Name’, R.User_Name0 as ‘User’, CS.Manufacturer0 as ‘Manufacturer’, CS.Model0 as ‘Model’, BIOS.SerialNumber0 as ‘Serial’, SD.Name0 as ‘Processor’, RAM.TotalPhysicalMemory0 as ‘Memory’, VC.Name0 as ‘Video Card’, VC.VCRam as ‘Video Card RAM’, Sound.Description0 as ‘Sound card’ from dbo.v_R_System R inner join dbo.v_GS_X86_PC_MEMORY RAM on RAM.ResourceID = R.ResourceId inner […]

Find all webcam – WQL

Use this WQL query to find all webcam http://social.technet.microsoft.com/Forums/en-US/configmgrai/thread/fa5fcfe2-69ef-4482-adfc-de25d6d19669/?prof=required select SMS_R_System.Name, SMS_G_System_SYSTEM_DEVICES.Name, SMS_G_System_SYSTEM_DEVICES.DeviceID from SMS_R_System inner join SMS_G_System_SYSTEM_DEVICES on SMS_G_System_SYSTEM_DEVICES.ResourceID = SMS_R_System.ResourceId where SMS_G_System_SYSTEM_DEVICES.Name like “%webcam%” .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier New”, courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: […]

How to find PCs within an AD container

If you need to find all PC within an AD container (not an OU). Use this WQL query to find them. For more details about this request, see the full forum post. http://social.technet.microsoft.com/Forums/en-US/configmgrsetup/thread/9358cee7-75a5-4595-80a3-4016ea572f1b   select SMS_R_System.Name, SMS_R_System.LastLogonUserName from SMS_R_System where SMS_R_System.SystemContainerName = “ENHANSOFT\\COMPUTERS”

CM12 Collection prompt example

For full details see: http://www.myitforum.com/forums/tm.aspx?high=&m=238953&mpage=1#239186 SELECT distinct sys1.Name0, csys.Model0, csys.Manufacturer0, os.Caption0, os.CSDVersion0, BIOS.SerialNumber0, sys1.description0, REPLACE((SELECT IPAddress0 + ‘, ‘ FROM v_GS_NETWORK_ADAPTER_CONFIGUR WHERE resourceID = sys1.resourceID AND ipenabled0 = 1 FOR XML PATH(”) )+’..’,’, ..’,”) AS [IP Addresses] FROM v_r_SYSTEM sys1 join v_GS_COMPUTER_SYSTEM csys on csys.resourceid=sys1.resourceid join v_GS_OPERATING_SYSTEM os on os.resourceid=sys1.resourceid join v_GS_PC_BIOS bios on bios.resourceid=sys1.resourceid […]

MAC Address report

For full details please see: http://social.technet.microsoft.com/Forums/en-ca/configmgrreporting/thread/19e0771c-eddc-43f7-956c-a5c9f0110e59   SELECT     A.Name0,     B.SerialNumber0 ,     A.Manufacturer0,     A.Model0,     C.Name0 ,     D.TotalPhysicalMemory0 ,     sum(E.Size0) ,     F.MACAddress0 ,     F.IPAddress0 ,     G.AD_Site_Name0 ,     A.UserName0 ,     H.Caption0 ,     H.CSDVersion0,     G.Creation_Date0 ,     I.LastHWScan–, —    BL.DriveLetter0, —    BL.ProtectionStatus0, —    BL.PersistentVolumeID0, —    […]