SCCM 2012 - Collection

Hi All,
I need your advice whether the below scenario will workout for automated uninstalation of applications.
1. Created Install collection in query method pointing to AD group in which if AD team move the asset to the corresponding group redeployed apps will be deployed which is working fine
2. For uninstallation of apps, i have created another uninstall collection pointing to the same AD group in which it will discover the machines already in install deployment and i will pre deploy the uninstall software.
So in this case if i remove the asset from install deployment does the uninstallation happen automatically. Please suggest
Regards, Pratap

'Install' wins if both (install and uninstall) deployments are received by the client.
The client will either be member of both or no collection if you are using the same WQL though.
Torsten Meringer | http://www.mssccmfaq.de

Similar Messages

  • OSD: SCCM 2012 collection which should exclude Windows 7 clients (query not working fine)

    Hi,
    We have an SCCM 2012 collection to which we deploy Windows 7.
    Vista clients get a SCCM 2012 client in SCCM 2007 and once they have it, they get a Windows 7 deployment.
    The group is populated by an AD query and that works fine. However, when we try to exclude Windows 7 machines (query = not Windows NT ... 6.1) the query does not return any result.
    Please advise.
    J.
    Jan Hoedt

    Please check your query. It should be like the following.
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_OPERATING_SYSTEM on SMS_G_System_OPERATING_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_OPERATING_SYSTEM.Version != "6.1.7601"
    Juke Chou
    TechNet Community Support

  • Bulk loader for SCCM 2012 collections

    I am looking for a tool which will add users / computer names as direct membership to collections, Bulk loader was there in SCCM 2007 but it is not working in SCCM 2012. Please suggest..

    Hi,
    Here is a PowerShell script with GUI for your reference.
    Configuration Manager 2012 Direct Membership Collection Manager
    http://blogs.msdn.com/b/rslaten/archive/2014/03/10/configuration-manager-direct-membership-collection-manager.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Sccm 2012 collection query for software deployment failed PCs

    Hi,
    Let me know how can we create a collection of PCs which a particular advertisement failed.
    SCCM 2012 sp1 infra
    Midhun.PS

    See
    http://myitforum.com/cs2/blogs/gramsey/archive/2006/10/20/How-To_3A00_-Create-a-Collection-Based-on-an-Advertisement-Status.aspx. This will only work for program deployments, not applications.
    Torsten Meringer | http://www.mssccmfaq.de

  • Sccm 2012 collections of specific servers (terminal servers etc)

    Hi,
    Please advise what criteria I should use in SCCM 2012 to make collections of specific servers: f.e. terminal servers.
    J.
    Jan Hoedt

    Add Win32_Serverfeature to hardware inventory (http://msdn.microsoft.com/en-us/library/cc280268(v=vs.85).aspx) and create collections based on that data.
    Torsten Meringer | http://www.mssccmfaq.de

  • SCCM 2012 Collection Query

    Hi All,
    I am using SCCM 2012 SP1 with SQL 2008 R2 SP1. I have scenario as below.
    App A is targeted to user based collection as Available (Optional).
    App B needs to be targeted to users who has successfully installed App A as Required(Mandatory).
    Note : As per application behaviour we cannot target App B to machine(Device) based collection, otherwise I would have created a query to pull out all the machines in a collection where App A is successfully installed on base of Add/Remove
    program display name.
    Question : I want to create a user collection query which will pullout last logged on user for all the machines where
    App A is installed successfully, so that I can target App B to this user based collection as Required(Mandatory). In this way if in future any other user is installing App A then that user will also get pulled out automatically to this user
    based collection.
    Its bit urgent for me. Request you please help me to get this query or let me know if there is any other way to achieve this.
    Thanks & Regards Uttam

    Hi Torsten,
    I really have not thought about supersedence but App B is not the upgrade or replacement for App A. If it would then we would have defined the relationship in supersedence. But App A and App B are entirely different applications. Functionality of App B depends
    upon App A, so both has to be there on the machine.
    Only the thing is App B should go to the users who has already installed App A on their machines. For this I would like to create user based collection but confused regarding query. How can we achieve this? I am thinking of to modify the below query
    to pull out last logged on user from the below collection query. I am using SCCM 2012 SP1 with SQL 2008 R2 SP1. How can I modify the below query?
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where ResourceId in  (select ResourceId from SMS_G_System_ADD_REMOVE_PROGRAMS
    where DisplayName="App A ARP name" and Version = "1.0.0")
    Thanks & Regards Uttam

  • Powershell and SCCM 2012 Collections from AD

    Greetings everyone, I am trying to take a select of groups in a certain OU within AD to make SCCM 2012 user collections from. I been playing around with just creating the collections based upon a txt file which would work and is probably easier. Can someone
    go through this mess I have down here and make this work. I found some scripts that do what I need but they just aren't flowing together well. Thanks for any help you can give. I think the 'DOMAIN\\'$ADName isn't going to work either. Thoughts?
    import-module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1')
    $PSD = Get-PSDrive -PSProvider CMSite
    CD "$($PSD):"
    $ADName = Get-Content -Path C:\fso\ADgroups.txt
    New-CMUserCollection -Name $ADName -LimitingCollectionName "All Users and User Groups" -RefreshType Both
    Add-CMUserCollectionQueryMembershipRule -CollectionName $ADName -QueryExpression "select *  from  SMS_R_User where SMS_R_User.UserGroupName = 'DOMAIN\\'$ADName" -RuleName "QueryRuleName1"

    Hi,
    I highly recommend asking this question in the ConfigMgr 2012 SDK/PowerShell forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=configmanagersdk&filter=alltypes&sort=lastpostdesc
    This forum is meant for general PowerShell questions. Hopefully you'll get a good response from someone here, but the people who are familiar with the ConfigMgr cmdlets will be more likely to see your question in the specialized forum.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Add multiple users to SCCM 2012 collection

    I have a list of users and I want to add the users to SCCM collection. Is there any way by VB script to do this?
    \m/

    Probably, but why use VBScript at all? 2012 has cmdlets you can use for this purpose.
    http://www.microsoft.com/en-us/download/details.aspx?id=41196&WT.mc_id=rss_alldownloads_all
    EDIT: Direct link:
    http://technet.microsoft.com/en-us/library/jj821831%28v=sc.10%29.aspx
    Caveat - requires a minimum of SP1. There's no reason to not be at least on SP1 by now.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • SCCM 2012 Collection Query Timings

    I am just wondering about the logistics of the timings. I have most collections updating on 15 minute intervals, all of them on the same clock using Midnight and every 15 minutes after that. This is the basic setup I am using too, All Systems -> SCCM
    Agents -> Software Deployment or other Collections.
    Is the 15 minutes per collection additive, or hit and miss? For instance I load a new computer, it goes into All Systems, then at the 15 minute point moves into SCCM Agents. Will it propagate into the Software Deployment at or around the same time or would
    it likely be in the next window of queries?

    Why wouldn't you use the delta discovery? Update all collection every 15 minutes is a huge hit to your CM12 server.
    http://www.enhansoft.com/

  • SCCM 2012: Active Directory Group Discovery, Delta Discovery?

    Hi,
    Our scenario:
    *Software is requested via a seperate system which puts AD computer objects in groups
    *Software within SCCM 2012 is deployed to computer collections
    *Computer collections query AD groups, in those AD groups the pc's reside
    *Collections memberships run via AD query (every 20 minutes)
    *We deploy an OS (Windows 7) via SCCM
    *Machine policy is updates every 20 minutes
    What is important: AD Group discovery is set to full discovery every 7 days, delta discovery set to 15 minutes
    So what happens:
    *Pc is staged correctly with Windows 7 but software isn't coming through in time (sometimes it's there within the hour, sometimes it takes 6 hours)
    *If we run a full AD Group discovery mostly software is installing immediately
    *Sometimes a SCCM 2012 client machine reset policy or reinstall client solves the problem
    My questions:
    *Would it be better to run full discoveries every x minutes since this always solves our problem
    *Would it be better to disable the delta discovery if we do the change above to minimize AD queries
    => tried that now (full discovery every 30 minutes and disabled delta discovery) but I don't want to put to much pressure on our domain controller
    *Our software collections are limited to all systems, we could limit them to a Windows 7 collection. Probably we should do that but any suggestion how to do this safely in Powershell?
    Please advise.
    J.
    Jan Hoedt
    Note: what I don't get is why a full ad discovery system discovery sovles the problem since SCCM 2012 collections do a AD query, what 's the link there?

    So, let me see if I get this correct for our situation:
    Our own developed system puts pc’s in AD groups
    SCCM 2012 polls these groups, by default 1/week full discovery then every 30 minutes a delta discovery
    We deploy software to computer collections, these collections check the SCCM 2012 database every 30 minutes (collection update) Note: the query our collection do, is based upon requirement of Windows 6.1 + membership of an AD group.
    The SCCM 2012 client/computer does a computer policy update every 30 minutes to see what collections it is member of and see then the software to be deployed
     2 questions:
    *Our my assumptions correct? Specifically point 3.: is the query fully coming from an ad sync (or also from sccm client, f.e. Windows 6.1%)?
    *Don’t we have a step to much then, wouldn’t it be better to add a direct membership of the AD group within SCCM? This direct membership would mean no query and so save us about 20 minutes (run of query)?
    Jan Hoedt

  • Windows 8.1 laptop computer not showing in SCCM 2012 devices collection

    Hi,
    I am trying to do a POC on license management from  SCCM 2012. I have configures a SCCM 2012 server and intune subscription also. I have Android, iOS and desktop apps uploaded (.msi). when I enrolled android and ios devices its shows up in SCCM,
    devices collection but do not show in Intune.
    my company portal is nicely coming up on android and iOS tabs. on the other hand company portal showing only Web apps, on a win8.1/7 laptop.
    When I tried to enroll 2 windows 8.1/ 7 laptop (intel x86), they donot show up in SCCM. clients of intune manually installed, endpoint protection of SCCM installed also on both boxes.
    I tried updating membership in SCCM for both know and unknown type, many time and also triggered Deployment of some desktop app, to the win 8.1 laptops. the desktops are showing in Intune All devices -> all computers nicely. But
    not in SCCM2012.
    what did I missed, I tried to add all the logical roles. below is some details what shows up in Intune:
    indranil

    If you installed the Intune agents on the Win 8.1 and Win 7 systems, then they will never show up in ConfigMgr.
    There are basically two parts of Intune -- a Mobile Device Management piece and a Windows management piece. The Intune connector in ConfigMgr takes over the MDM piece and nothing more. When ConfigMgr takes over this MDM piece, as Torsten said, all MDM devices
    enrolled show up in ConfigMgr and not Intune because that's now controlled by ConfigMgr. The Windows management piece remains unchanged and separate though and so those systems will be directly managed by Intune only or ConfigMgr only.
    So you have three options there:
    - Install the ConfigMgr agent and managed using COnfigMgr
    - Install the Intune agent and manage using Intune
    - Enroll the systems using OMA-DM which manages them as if they were devices. This means so you don't get SCEP or Windows Updates or most of the other ConfigMgr functionality. This is only valid for Win 8.1 though.
    Jason | http://blog.configmgrftw.com

  • Need to make collection Query statement by sccm 2012 sp1 for Count of Licenses by License Status

    I want to make collection Query statement by sccm 2012 sp1 for all windows activated and all non-activated windows.
    Ahmed Sherif

    Have a look at the Software Licensing Product attribute classes when creating a Query - remember to choose
    System Ressource when creating the Query. You would have to enable this class to be collected during Hardware Inventory. Go to
    Client Settings -> Hardware Inventory ->
    Set Classes -> Select Software Licensing Product.
    This Class is part of the Asset Intelligence classes so you could enable it from there as well.
    Another way to accomplish is to use Compliance Settings to get this information.
    Create a Configuration item that query the Win32_WindowsProductActivation WMI Class, if you are using XP and the
    SoftwareLicensingProduct class for later os´s
    Add this Configuration Item to a Baseline ad deploy it to your Collections as needed.
    When the Baseline has been evaluated you can use this information to create query
    Machines reported as compliant is actived and machines reported as Non-Compliant is not activated.
    You can read about the Win32_WindowsProductActivation WMI Class here:
    http://msdn.microsoft.com/en-us/library/aa394520(v=vs.85).aspx
    and the SoftwareLicensingProduct here:
    http://msdn.microsoft.com/en-us/library/cc534596(v=vs.85).aspx

  • SCCM 2012 report w/ selectable collection

    I am trying to create a report with a selectable collection parameter.  The original query I'm using is as follows (Stolen from
    http://blogs.technet.com/b/infratalks/archive/2013/09/10/sccm-2012-reporting-get-system-serial-number-amp-create-custom-ssrs-report.aspx):
    Select sys.Name0 Machine, CS.UserName0 'User Name',OS.Caption0 OS, OS.CSDVersion0 'Service Pack',CS.Manufacturer0 Manufacturer,CS.Model0 Model,BIOS.SerialNumber0 'Serial Number',RAM.Capacity0 Memory, cs.SystemType0
    From v_R_System SYS
      left join v_GS_COMPUTER_SYSTEM CS on sys.Name0=cs.Name0
      left join v_GS_PC_BIOS BIOS on sys.ResourceID=bios.ResourceID
      left join v_GS_OPERATING_SYSTEM OS on sys.ResourceID=OS.ResourceID
      left join v_GS_PHYSICAL_MEMORY RAM on sys.ResourceID=ram.ResourceID
      --Where sys.Name0 = @variable
      order by sys.Name0
    This works fine, but it gives me that information for EVERY machine in our infrastructure globally.  I am only interested in getting this information from machines in certain collections and I want to be able to select the collection each time I run
    the report.  I found this article:
    http://it.peikkoluola.net/2013/06/02/report-with-a-selectable-collection-parameter-sql/ and followed the steps, but cannot run the report successfully.  I'm guessing it has something to do with needing to modify my query, but I am a newb with SQL and
    have no clue what or where I should be tweaking.  Just adding "WHERE(dbo.v_FullCollectionMembership.CollectionID
    = @COLLID)" gives me a syntax error.  Moving it above "Order by sys.name0" gives an error about not being bound to anything, which makes sense but as I mentioned, I don't know what to tweak.  Help!  Thanks.

    Select sys.Name0 Machine, CS.UserName0 'User Name',OS.Caption0 OS, OS.CSDVersion0 'Service Pack',CS.Manufacturer0 Manufacturer,CS.Model0 Model,BIOS.SerialNumber0 'Serial Number',RAM.Capacity0 Memory, cs.SystemType0
    From v_R_System SYS
      left join v_GS_COMPUTER_SYSTEM CS on sys.Name0=cs.Name0
      left join v_GS_PC_BIOS BIOS on sys.ResourceID=bios.ResourceID
      left join v_GS_OPERATING_SYSTEM OS on sys.ResourceID=OS.ResourceID
      left join v_GS_PHYSICAL_MEMORY RAM on sys.ResourceID=ram.ResourceID
      join v_fullcollectionmembership fcm on fcm.resourceid=sys.resourceid
      Where fcm.collectionid = @COLLID
      order by sys.Name0
    Try the above, note that @COLLID is a placeholder for a variable.  It is presumed that you are creating this using Report Builder 3.0 (or better) or some other SQL tool to create reports for use on your SRS reporting point.  If you happen
    to be using Report Builder, once you save the above, under parameters you'd have a place for COLLID.  Now, what you want is to be able to have that parameter be populated with your collection names, so that you can select from the list when the report
    is run.
    So... another DataSet, with a query like:
    select collectionid, name
    from v_collection
    order by name
    Then, back to your parameters, COLLID, available values, Get values from a query, and you'll want to use that dataset you just made, and Value field is collectionid, and Label field is Name.
    If you want to test the top query in regular sql, don't use @collID.  figure out the collectionid of a specific collection, and put in where fcm.collectionid='ABC00012'
    Standardize. Simplify. Automate.

  • SCCM 2012 R2 Empty Query in Collection

    Now, I just discovered yesterday where I created Collection with query but resulted NONE. I know there's no problem with the query itself because I created the same one within the query itself and it give me the result.
    Here's another problem with my CAS & Primary Site SCCM 2012 R2 with CU1:
    1. Created X64 (Servers & Workstations) Collection with membership rules:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID
    = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.SystemType = "x64-based PC"
    It doesn't give me anything (blank no computer names) even after I refresh the collection.
    BUT, when I created under \Monitoring\Overview\Queries\Results for X64 (Servers & Workstations)
    I could see the result of it.
    Is it my SQL has problem? I'm using SQL 2012 SP1.
    I even updated with CU2 now in Production but it still the same thing. I have no problem with this query above in my test environment.
    Have you come across with this issue? Thanks, Reza
    Reza Prawirasatya

    You might have used a empty limiting collection

  • Collection in SCCM 2012 of SCCM 2007 clients?

    Hi,
    I'd need to make a collection of SCCM 2007 clients in SCCM 2012. This way I know which clients need to be updated.
    Can that be done?
    I guess queries can only be run on what sccm 2012 client return on info (I tried a simple query: configuraiton manager client state - version but it only return versions 5.x).
    Pls advise.
    J
    Jan Hoedt

    I'd need to make a collection of SCCM 2007 clients in SCCM 2012. This way I know which clients need to be updated.
    Can that be done?
    Can't you just add the column '(client) version' in the console? Are they displayed then? (Also keep in mind that it's theoretically not possible that CM07 clients can be assigned to a CM12 site)
    Torsten Meringer | http://www.mssccmfaq.de

Maybe you are looking for