Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Query SQL - SCCM

Messages
2
Reaction score
0
Points
1
Dear, I need help building a query, could you help me?

There is a need to create a query via SQL to present the product code (present in regedit) of a specific software, for example:
The requirement is the partial name of the software and the presentation, the full name of the application, product version and its product code must appear.

ps: only three columns
 
can someone help me. i need to create a query code to identify all software installed in computer collection.
i dont know where to query this code
Select Distinct
sys.Netbios_Name0,
sys.User_Domain0,
sys.User_Name0,
sys.AD_Site_Name0

FROM
v_R_System sys
JOIN v_Add_Remove_Programs arp ON sys.ResourceID = arp.ResourceID
WHERE
sys.ResourceID in (select sys.ResourceID
from
v_R_System sys
JOIN v_Add_Remove_Programs arp ON sys.ResourceID = arp.ResourceID
where
DisplayName0 like '%AppName%'
and Version0 like 'version')
and sys.Operating_System_Name_and0 like '%workstation%'
 
Back
Top