Ask a questionAsk a question
 

AnswerMultiple entries in the Object Tab of Configuration Item

  • Thursday, November 05, 2009 3:10 PMAC76 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am recreating a number of internal compliance checks in SCCM that we currently carry out under SMS (setup using the Custom Update Publishing Tool (CUPT)). 

    In one of these checks I check for a specific file name in one of two locations.  I can add this to the Object tab as two entries, 1 for each location, but the checks fails if it does not find it in both, which it won't.  I only want this to show as non-compliant if the file is in neither location.  This could be achieve in the CUPT with an OR statement.

    Does anybody know if I can replicate this functionality in SCCM?

    Does anyone have any experience with CP Studio, and does this allow more advanced CI's than can be configured directly in SCCM?

    Thanks
    Andrew  

Answers

All Replies

  • Thursday, November 05, 2009 9:24 PMraymond hestres Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can use the settings tab adn add a script that checks for the files and outputs true or false, then validate for that
  • Monday, November 09, 2009 12:43 PMAC76 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Raymond,

    I will give that a go.  
  • Friday, November 20, 2009 12:14 PMAC76 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    That worked fine.  For information the script I used to evaluate this was:


    ***********
     dim fso, objParameters, r

    set fso=CreateObject("Scripting.FileSystemObject")

    Set objParameters = WScript.Arguments

    r=false

     if (fso.FileExists("[file1]") or fso.FileExists("[file2]")) then
      wscript.echo "TRUE"
     else
      wscript.echo "FALSE"
     end if