/build/static/layout/Breadcrumb_cap_w.png

How to make a report with all software installed on a computer Label?

Hi Guy's,
I need to change my report to give to me all computers on a ComputerLabel.
My script is providing all installed programs on a computer.
In moment my script is:
Select CONCAT(MACHINE.NAME, "\\", MACHINE.SYSTEM_DESCRIPTION) as MACHINE_NAME, DISPLAY_NAME,
DISPLAY_VERSION, PUBLISHER from (SOFTWARE, MACHINE_SOFTWARE_JT, MACHINE) where MACHINE.ID =
MACHINE_SOFTWARE_JT.MACHINE_ID and SOFTWARE.ID = MACHINE_SOFTWARE_JT.SOFTWARE_ID and not IS_PATCH
and MACHINE.NAME = 'enter machine name here'
order by MACHINE_NAME, DISPLAY_NAME
How can a change my script to be able to do the same for a ComputerLabelGroup.
I'm sorry. But i'm very bad on SQL and i really need your help on this problem.
Best regards,
Rildo

0 Comments   [ + ] Show comments

Answers (1)

Posted by: dchristian 12 years ago
Red Belt
1
Hey rgiroux,

Try something like this:

It looks at all the machines in the workstation label.

SELECT
CONCAT(
MACHINE. NAME,
"\\",
MACHINE.SYSTEM_DESCRIPTION
) AS MACHINE_NAME,
DISPLAY_NAME,
DISPLAY_VERSION,
PUBLISHER
FROM
(
SOFTWARE,
MACHINE_SOFTWARE_JT,
MACHINE,
MACHINE_LABEL_JT ML,
LABEL L
)
WHERE
MACHINE.ID = MACHINE_SOFTWARE_JT.MACHINE_ID
AND SOFTWARE.ID = MACHINE_SOFTWARE_JT.SOFTWARE_ID
AND MACHINE.ID = ML.MACHINE_ID
AND ML.LABEL_ID = L.ID
AND NOT IS_PATCH
AND L.`NAME` = 'WORKSTATIONS'
ORDER BY
MACHINE_NAME,
DISPLAY_NAME
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ