Device Collection Question

Is there a secret to this? Seems straightforward enough. So I have some built that work, but sometimes when I try and add other things I get nothing.
Example Criteria: System.Resource.Client is NULL
- This works great. I get back all the machines that dont have the clien installed. But I need it filtered more. Soooo.
System.Resource.Client is NULL
and
System.Resource.Virtual Machine is equal to "False"
-Now I get 0 results even though I know the client is missing on some non virtual machines.
If I try each one individually they work fine. But when I try and add more I get 0. Like I want all workstations, that are not virtual, that do not have the client installed.
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 SMS_R_System.Client is null  and SMS_R_System.IsVirtualMachine
= "False" and SMS_R_System.OperatingSystemNameandVersion = "%Workstation%"
Does not work. What am I missing or doing wrong?

Hi,
If you look at a client that you get when you use the client is NULL query they most likely don't have the Virtual Machine value configured. Operating System is discovered using the AD System Discovery Agent but the AD doesn't know if the computer is virtual
or physical so your query looks right but computers without the client would not have the value set for virtual machine.
can you query the virtual machines by name perhaps? any special namin convention for virtual machines?
Regards,
Jörgen
-- My System Center blog ccmexec.com -- Twitter
@ccmexec

Similar Messages

  • Device collections question

    I have created a custom Device ollection called test group, I also have added workstations to it. My question is (I cant remember anymore) is how to add another computer to that custom collection.
    MSB

    Hi,
    Have you seen this:
    Import Computer to Configuration Manager 2007 / 2012
    http://www.david-obrien.de/?p=413
    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.

  • Cannot add modify permission to Group for Device Collection

    Hi All,
    I am having trouble adding the modify permission to a device collection. I am not sure why it is not applying since the group has been granted Full Admin to the collection? Please see below:
    While the group can access the distribution point properties, all them are greyed out so they cannot make any changes.
    BTW the collection comprises of all Distribution points. Is there another permission I need to grant to the Administrative Users (group in question)

    I recommend these two articles:
    Article 1
    http://blogs.technet.com/b/configmgrteam/archive/2011/09/23/introducing-role-based-administration-in-system-center-2012-configuration-manager.aspx
    Article 2
    http://blogs.technet.com/b/hhoy/archive/2012/03/07/role-based-administration-in-system-center-2012-configuration-manager.aspx
    I hope that helps!
    Nash Pherson, Senior Systems Consultant
    Now Micro -
    My Blog Posts
    If you found a bug or want the product to work differently,
    share your feedback.
    <-- If this post was helpful, please click the up arrow or propose as answer.

  • Importing Existing Computers into a Device Collection

    Scenario:
    I have 50k devices in my SCCM inventory.  A Project Manager hands me a list of 556 computers in CSV format which require a specific application deployment.  All computers are from different LOBs, all are unique. Nothing is common.
    Question:
    Is there a method of taking this list of existing computers and importing them into a device collection without using a query?
    Thanks,
    mino

    You have outdated right click tools.
    This is how it should look like.
    Here is link to the newest version.
    Install the installer and then 3 updates.
    You might have to manually get rid of the old ones or you might see both versions present (with and without icons).

  • Device Collections vs Reports

    Fairly new user to System Center 2012 here, so still trying to learn the ins and outs.
    Last Thursday, we deployed new software to every PC in our environment.  The deployment uninstalled the old application and installed the new one.  The job itself was a success (not bad for my first one!).
    Anyhow, I had built a SQL based device collection for each application so that I could monitor how many PCs have each application.  Essentially, I wanted to watch one grow while the other declined.
    I also built a report for each application based on what Add/Remove Programs is reporting so that I could have something to export to Excel to provide updates to management.  We run software scans daily on all of our PCs and 90% physically remain
    on the network all hours of the day.
    My question is:  Why is the device collection showing so many more computers having the new software than the report is?  I would think they would both always report the same number.  For example, the device collection shows 2021 members with
    the new application, however the report shows 1565.  The report makes it appear as though the deployment was a failure, but the device collection says otherwise.  Today is day 5 so I just find it odd that it's taking so long for the report to catch
    up.  Maybe I've missed a setting to configure the clients to run an inventory scan daily?
    Administration - Client Settings - Software Inventory - Occurs every 1 day effective mm/dd/yyyy 10:00AM.

    Yep hardware inventory is the one you want.
    Do you really need a software inventory every day?
    http://be.enhansoft.com/post/2013/10/03/Slow-Software-Inventory-Cycle-in-SCCM-2012.aspx
    You can also force a hardware inventory full / delta with the right click tools by now micro. it's a very good free addition.

  • Need help creating a device collection based on members of a user collection

    Hello everyone,
        I am working on developing a device collection based on the membership of a user collection. The purpose of the device collection is to provide us with the capability of deploying software to users while the users are logged off their systems.
    I would love to use AD security groups but unfortunately that isn't an available approach in this case. I have been experimenting with SQL queries to find the best way to obtain the results I want and the following query works like a champ:
    Select SYS.Name0,
    v_R_User.Unique_User_Name0
    FROM v_R_System AS SYS
    JOIN v_UserMachineRelationship ON SYS.Name0=v_UserMachineRelationship.MachineResourceName
    JOIN v_R_User ON v_UserMachineRelationship.UniqueUserName=v_R_User.Unique_User_Name0
    JOIN v_FullCollectionMembership AS FCM on FCM.ResourceID = v_R_User.ResourceID
    JOIN v_Collection AS COLMEM ON COLMEM.CollectionID = FCM.CollectionID
    Where FCM.CollectionID = 'cha0000B'
    The problem arises when I attempt this same query in SCCM 2012, I don't get any results from this query so of course it won't work to base a Device Collection from. Here is the WQL:
    Select SYS.Name,
    SMS_R_User.UniqueUserName
    FROM SMS_R_System AS SYS
    JOIN SMS_UserMachineRelationship ON SYS.Name=SMS_UserMachineRelationship.MachineResourceName
    JOIN SMS_R_User ON SMS_UserMachineRelationship.UniqueUserName=SMS_R_User.UniqueUserName
    join sms_v_FullCollectionMembership AS FCM on FCM.ResourceID = SMS_R_User.ResourceID
    join SMS_v_Collection AS COLMEM ON COLMEM.CollectionID = FCM.CollectionIDwhere FCM.CollectionID = 'cha0000B'
    I am hoping that someone will be able to look at my SQL and tell me how I can get the WQL right so I can use this query properly or provide suggestions to accomplish what I need.
    Thanks in advance for the assist,
    Chris Bolton

    Hi Torsten,
         While your suggestion of that link was close, it still went in the direction of using security groups as the basis for device queries and that isn't the direction I am pursuing. I had a colleague look at my original query and he identified
    that I had some unnecessary redundancy but that didn't resolve my SQL -> WQL inconsistency. I continued to play with the query and the following SQL also works (and actually works a bit better for my purposes)
    select distinct v_R_System.Name0,
    v_R_User.Unique_User_Name0
    FROM v_R_System
    JOIN v_R_User on v_R_User.Full_User_Name0 = v_R_System.User_Name0
    JOIN v_UserMachineRelationship ON v_R_System.Name0 = v_UserMachineRelationship.MachineResourceName
    JOIN v_FullCollectionMembership on v_R_User.Unique_User_Name0 = v_FullCollectionMembership.SMSID
    WHERE v_FullCollectionMembership.CollectionID = 'cha0000b'
    however when I translate it to WQL I still am unable to get results (here is the WQL version)
    select distinct sms_R_system.Name,
    sms_R_User.UniqueUserName
    FROM sms_R_system
    JOIN SMS_R_User on SMS_R_User.FullUserName = SMS_R_System.UserName
    JOIN SMS_UserMachineRelationship ON SMS_R_System.Name = SMS_UserMachineRelationship.MachineResourceName
    JOIN SMS_FullCollectionMembership on SMS_R_User.UniqueUserName = SMS_FullCollectionMembership.SMSID
    WHERE SMS_FullCollectionMembership.CollectionID = 'cha0000b'
    I think I am on the verge of getting this right but it sure seems to be a challenge. Is there a "WQL Workbench" that I could use that is similar to SQL Management Studio inside of which I could test these queries rather than having to use the rather clunky
    SCCM "Edit Query Statement" dialog box?
    Thanks again,
    Chris Bolton

  • 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

  • Help me in creating a Device Collection - i have a list of machine name (in a excel or CSV file)

    Hello Guys,
    I have created a Device collection for UK region (2000+ machines)
    Now i have been given a list of 1000 machines to which i need to deploy an application.
    I have to create a device collection for this 1000+ machines. as an input i have a excel or CSV file with a list of machine names.
    Please suggest me how can i create a device collection with CSV file as input. Is my CSV file should be in particular format.
    Or is there any other way i can create a collection for this 1000 specific machines.
    Please suggest.

    My previous post was for sccm 2012.
    here its for 2007
    In the Operating System Deployment section of SCCM right click on Computer Association and choose
    Import Computer Information
    when the wizard appears select Import Computers using a file
    The file itself must contain the information we need in this (CSV) format
    COMPUTERNAME,GUID,MACADDRESS
    (sample below)
    Quote
    deployvista,3ED92460-0448-6C45-8FB8-A60002A5B52F,00:03:FF:71:7D:76
    NEWCOMP1,55555555-5555-5555-5555-555555555555,05:06:07:08:09:0A
    NEWPXE,23CA788C-AF62-6246-9923-816CFB6DD39F,00:03:FF:72:7D:76
    w2k8deploy,BFAD6FF2-A04E-6E41-9060-C6FB9EDD4C54,00:03:FF:77:7D:76
    if we look at the last line, I've marked the computer name in Red, the GUID in BLUE and the MAC address in GREEN, separate these values with commas as above.
    w2k8deploy,BFAD6FF2-A04E-6E41-9060-C6FB9EDD4C54,00:03:FF:77:7D:76
    the file can be a standard TEXT file that you create in notepad, and you can rename it to CSV for easier importing into our wizard...
    so, click on Browse and browse to where you've got your CSV file
    on the Choose Mapping screen, you can select columns and define what to do with that mapping, eg: you could tell it to ignore the GUID value (we won't however)
    on the next screen you'll see a Data Preview, and this is useful as it will highlight any errors it finds with a red exclamation mark, in the example below a typo meant that it correctly flagged the MAC address as invalid
    so edit your CSV file again and fix the error, click previous (back) and try again
    Next choose the target collection where you want these computers to end up in
    review the summary
    in SCCM collections, we can now see the computers we've just imported from File,
    Enjoy
    Nikkoscy

  • Stagger application deployment to device collection

    Hi,
    I've created a device collection using a query that has list of machines with a specific application installed.
    I have an updated version of that application that I'd like to deploy to that collection.
    I'd like to stagger the deployment so that the update takes place on few computers each day or so. For example, every night update the application on 10 machines.
    Can this be done? I'm using SCCM 2012 SP1.
    Pman
    http://www.pmansLab.com/

    There's no direct way to do this.
    One way to accomplish this though is to create a set of sub-collections that are limited to your main collection. You would then create new deployments with different deadlines for each of these "sub-"collections. The membership of these sub-collections
    could then be done using a query based rule that looks at something like the last digit/character of the system's GUID. For example, you could create seven sub-collections and the query rule for the first would only include systems where the GUID's last character
    was 1-3, the second collection would look for 4-6, the 3rd would be 7-9, ...
    If, your application deployment re-evaluation is set to everyday, then you could also do something similar using requirement rules and a little basic math.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Query and Device Collection by Department

    Hi all,
      I am trying to figure out how to build a query and a device collection that is by department.
    In the administration of sccm 2012 sp1 I added the attribute "department" but I do not see a way to build a query that shows:
    user name/computer name/department/etc
    It seems the users and system resourses of the query are split up. Not sure how to join them to get the query I am after. Any help would be great. Thanks

    Hi,
    please examine the Active Directory System Discovery log (adsysdis.log) to confirm that discovery is running properly.
    For more information, please review the link below:
    Discover additional Active Directory attributes with SCCM 2007/2012 discovery
    http://deployos.com/blog/2013/01/05/discovery-additional-active-directory-attributes-with-sccm-20072012-discoveries
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    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.

  • RME Device Collection failure/UserTracking Hostname

    A couple of months ago I upgraded our 2 old 6500 to a pair of 6509 running as a Virtual Switching System.  Now I am having 2 problems that I hope are related.  The first problem is that RME fails when it tries to do an inventory.  The message I get is: "Failed (Device Collection Failed. Device side issue)."
    I'm not sure what this means.  All my credentials are correct, and this seems to be the only thing failing.
    The next problem I'm having is since I upgraded to the 6509 VSS, User Tracking no longer pulls the device hostname from DNS.  User tracking still works with MAC & IP address, just not with the hostname anymore.
    Any ideas?
    Thanks

    RME 4.2.0
    IOS Version 12.2(33)SXI
    [ Tue Dec 29  20:26:51 CST 2009 ],WARN ,[Thread-22],com.cisco.nm.rmeng.util.logger.XDILogger,67,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatSwitch.ContainmentAGI_ENTITY_Mib,g$eval,140,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatSwitch:ContainmentAGI_ENTITY_Mib:g$eval:populating ContainmentAG failed for Entity's AGI, falling back to Cisco-STACK-Mib AGI...
    [ Tue Dec 29  20:26:51 CST 2009 ],ERROR,[Thread-22],com.cisco.nm.rmeng.util.logger.XDILogger,57,com.cisco.nm.xms.xdi.SdiEngine,initAndEvalAGIs,385,rp Software (s72033_rp-IPSERVICESK9_WAN-M)
    [ Tue Dec 29  20:28:40 CST 2009 ],ERROR,[Thread-22],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,721,Exception for device 172.21.90.1 is
    java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:711)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NumberFormatException: rp Software (s72033_rp-IPSERVICESK9_WAN-M)
    at com.cisco.nm.xms.xdi.pkgs.LibInventory.CiscoVersionString.parseVersionString(CiscoVersionString.java:154)
    at com.cisco.nm.xms.xdi.pkgs.LibInventory.CiscoVersionString.(CiscoVersionString.java:86)
    at com.cisco.nm.xms.xdi.pkgs.LibInventory.ImageAGI_CISCO_ENHANCED_IMAGE_HelperMethods.compareVersions(ImageAGI_CISCO_ENHANCED_IMAGE_HelperMethods.java:139)
    at com.cisco.nm.xms.xdi.pkgs.LibInventory.ImageAGI_CISCO_ENHANCED_IMAGE_HelperMethods.iosVersionCheck(ImageAGI_CISCO_ENHANCED_IMAGE_HelperMethods.java:201)
    at com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatSwitch.ContainmentAGI_ENTITY_Mib.g$eval(ContainmentAGI_ENTITY_Mib.java:147)
    at com.cisco.nm.xms.xdi.ags.ContainmentAGI.g$eval(ContainmentAGI.java:21)
    at com.cisco.nm.xms.xdi.SdiEngine.initAndEvalAGIs(SdiEngine.java:383)
    at com.cisco.nm.xms.xdi.SdiEngine.request(SdiEngine.java:309)
    at com.cisco.nm.xms.xdi.SdiEngine.getDevRepr(SdiEngine.java:302)
    at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:531)
    ... 1 more
    [ Tue Dec 29  20:28:40 CST 2009 ],ERROR,[Thread-22],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,769,Unknown Exception
    java.lang.NumberFormatException: rp Software (s72033_rp-IPSERVICESK9_WAN-M)
    at com.cisco.nm.xms.xdi.pkgs.LibInventory.CiscoVersionString.parseVersionString(CiscoVersionString.java:154)
    at com.cisco.nm.xms.xdi.pkgs.LibInventory.CiscoVersionString.(CiscoVersionString.java:86)
    at com.cisco.nm.xms.xdi.pkgs.LibInventory.ImageAGI_CISCO_ENHANCED_IMAGE_HelperMethods.compareVersions(ImageAGI_CISCO_ENHANCED_IMAGE_HelperMethods.java:139)
    at com.cisco.nm.xms.xdi.pkgs.LibInventory.ImageAGI_CISCO_ENHANCED_IMAGE_HelperMethods.iosVersionCheck(ImageAGI_CISCO_ENHANCED_IMAGE_HelperMethods.java:201)
    at com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatSwitch.ContainmentAGI_ENTITY_Mib.g$eval(ContainmentAGI_ENTITY_Mib.java:147)
    at com.cisco.nm.xms.xdi.ags.ContainmentAGI.g$eval(ContainmentAGI.java:21)
    at com.cisco.nm.xms.xdi.SdiEngine.initAndEvalAGIs(SdiEngine.java:383)
    at com.cisco.nm.xms.xdi.SdiEngine.request(SdiEngine.java:309)
    at com.cisco.nm.xms.xdi.SdiEngine.getDevRepr(SdiEngine.java:302)
    at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:531)
    at java.lang.Thread.run(Thread.java:595)

  • Lms 3.1 Device Collection Failure for Cat 6506-E

    Unable to pull an updated device collection for a Cat6506-E running 12.2(33)SXI3.  Was able to pull one when the device was running 12.2(33)SXH3, but not now.  Anyone aware of a bug with the 12.2(33)SXI3 code?  All other devices function correctly so I'm guessing an IOS bug, although I got tired of searching for it.  Thanks in advance, Ernie

    I've just upgraded to LMS 3.2, and LMS still can't inventory my two 6506-E.
    I've run an "SNMP Walk" against one device, and it seems to work : here's the first few lines of it :
    The following is a SNMP walk of device 10.x.x.x starting from
    SNMP Walk Output
    RFC1213-MIB::sysDescr.0 = STRING: "Cisco IOS Software, s72033_rp Software (s72033_rp-IPSERVICESK9-VM), Version 12.2(33)SXI2a, RELEASE SOFTWARE (fc2)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2009 by Cisco Systems, Inc.
    Compiled Tue 01-Sep-09 22:55 by prod_re"
    RFC1213-MIB::sysObjectID.0 = OID: CISCO-PRODUCTS-MIB::cat6506
    EXPRESSION-MIB::sysUpTimeInstance = Timeticks: (803850159) 93 days, 0:55:01.59
    And I checked the IC_Server.log... this time it mentions SNMP timeout... I tried bumping the timeout to 20 seconds with 2 retries in Campus Manager.
    I've attached my IC_Server.log excerpt.
    Thanks for the help!
    Alex.

  • Application set as 'Install for User' but deployed to device collection - what happens ?

    Hi All,
    If i package an application and set it to 'install for User' - if i then deploy that application to a device collection as required will it install for every user each time they log onto the computer.. ???
    Cheers.

    Install for User determines the security context in which it will install.  If the logged on user is not an admin, the install will likely fail.  And yes, technically the app will be available for all users who log in (to be installed) however
    if you have your detection method configured properly the app will be installed only once as the detection will determine its already there.
    Someone please correct me if I am wrong.  ;-)

  • Device Collections - query for HyperV servers

    Is it possible to devise a Device Collection query that would only list servers running with the HyperV role ?

    select *  from  SMS_R_System inner join SMS_G_System_SERVICE on SMS_G_System_SERVICE.ResourceId = SMS_R_System.ResourceId
    where SMS_G_System_SERVICE.DisplayName = "Hyper-V Virtual Machine Management"
    Cheers
    Paul | sccmentor.wordpress.com

  • Operating system name under Device Collection

    Hi,
    I have created device collection and select the Operating system from Add criteria but operating system is showing as below..
    can this will be show the real OS name as Windows 7 ,Windows XP , Windows Server 2008 R2, Windows Server 2012 R2 instead of  Operating system as below...
    Shailendra Dev

    No, you can't run a query one time that will change this information in the console.  The info displayed in the console is what is being discovered out of Active Directory for the the Computer Object.
    They were suggesting that if you wanted to see a list of computers and a more friendly name, you could run a Query in the console or write a report in SSRS - but that would just be for viewing the information there and would not affect things on the server.
    Nash Pherson, Senior Systems Consultant
    Now Micro -
    My Blog Posts
    If you found a bug or want the product to work differently,
    share your feedback.
    <-- If this post was helpful, please click the up arrow or propose as answer.

Maybe you are looking for

  • How to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,    My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write

  • Using DatePicker in forms 10g

    how can i use datepicker in forms 10g for date data type items.

  • How to export custom metadata fields

    How do I export custom metadata fields (or even the DATE) to a text or spreadsheet? Why does Aperture have dozens of metadata choices, but only allows a few to be exported?

  • Ready to buy mini - but don't want obsolete product

    Here is a problem I see more and more with Apple. I am a longtime user (since 1984). It used to be you'd buy a machine and know it would be a stable product for three or four years. No big changes. Twice in the last two years I have made major invest

  • Send Purchase Order via ALE/IDOCS

    hi,       How can i send one PO from one client to another via ALE/IDOCS?       Pls provide few important steps. Thanks and Regards, Gaurav