title: Verify if a PC is a member of a specific SCCM collection
body: <p>I am looking for a script in powershell or vb that will check the current PC to verify that it is a member of a specified SCCM 2012 collection.  </p>
  
  <p>We want to do this so we can create multiple deployment types and assign them to different collections, then use the deployment type requirements to make sure those deployment types only deploy to the correct collection.  We do not want to create multiple applications for the same media when there are only slight variations in the installation parameters.</p>
  
  <p>I believe there should be a basic script to check if current PC is a member of collection DR100038 (as an example) and return a 1 or 0.</p>