/build/static/layout/Breadcrumb_cap_w.png

Help on creating a collection based on an advertisement status

HI,

I am trying to find a tool or script that based upon the status of an advertisement, will create a collection.

This will be used to create a self-populating\depleteing collection for machines where the advertisement failed.

If anyone has any other ideas and/or tools, scripts, etc.... it would be much appreciated!

thanks

Lee

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 14 years ago
Red Belt
0
There are some good (if brief) script samples on MSDN. Start here http://msdn.microsoft.com/en-us/library/cc144365.aspx

The SCCM SDK is worth a d/l, too.
Posted by: turbokitty 14 years ago
6th Degree Black Belt
0
You could use a h/w inventory scan of A/R programs to determine if an app is installed or not.

This query is stolen from here:
http://www.myitforum.com/forums/m_171013/mpage_1/key_framework/tm.htm#171353

It will install an app for a machine whose computer account is in the AD group "adgrpMicrosoftNETFramework11" and not in the AD group "Domain\\adgrpSpecialUseComptures" and that does not have the Add/remove programs entry "Microsoft .NET Framework 1.1".


SELECT SMS_R_System.*
FROM SMS_R_System WHERE
(SMS_R_System.ResourceID In
(SELECT ResourceID FROM SMS_R_System WHERE SystemGroupName = "Domain\\adgrpMicrosoftNETFramework11"))
AND
(SMS_R_System.ResourceID Not In
(SELECT ResourceID FROM SMS_R_System WHERE SystemGroupName = "Domain\\adgrpSpecialUseComptures"))
AND
(SMS_R_System.ResourceID Not In
(SELECT ResourceID FROM SMS_G_System_ADD_REMOVE_PROGRAMS
WHERE SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Microsoft .NET Framework 1.1"))

Posted by: anonymous_9363 14 years ago
Red Belt
0
Lee, a thought occured to me. When you say 'advertised', do you mean advertised by SCCM or by Windows Installer? I have no clue how you might detect SCCM advertisement but WI is easy enough, by querying the WindowsInstaller.Installer ProductState property. It's also available from WMI, meaning that you can query remotely http://msdn.microsoft.com/en-us/library/aa394378(VS.85).aspx
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

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