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.

Similar Messages

  • Query and update collections

    Hi all,
    Following :
    CREATE TABLE TSET
    ID NUMBER(10)
    Insert into PER.TSET
    (ID)
    Values
    (1);
    Insert into PER.TSET
    (ID)
    Values
    (2);
    Insert into PER.TSET
    (ID)
    Values
    (3);
    COMMIT;
    CREATE OR REPLACE FORCE VIEW V_ID (ID,FLAG)
    AS
    (SELECT ID, 0
    FROM TEST1);
    SELECT * FROM V_ID
    ID FLAG
    1 0
    2 0
    3 0
    CREATE OR REPLACE TYPE OBJ_ID IS OBJECT
    ID NUMBER(10),
    FLAG NUMBER(5)
    CREATE OR REPLACE TYPE T_ID AS TABLE OF OBJ_ID
    I want pass VIEW V_ID to table T_ID
    select * from table(T_ID)
    Excpect output
    ID FLAG
    1 0
    2 0
    3 0
    and i want to update FLAG to any ID in table(T_ID)
    Thanks in advance

    RJ wrote:
    and i want to update FLAG to any ID in table(T_ID)T_ID is type, not a table. You need to create table:
    SQL> DROP TYPE T_ID
      2  /
    Type dropped.
    SQL> CREATE TABLE T_ID OF OBJ_ID
      2  /
    Table created.
    SQL> INSERT
      2    INTO T_ID
      3    SELECT  *
      4      FROM  V_ID
      5  /
    3 rows created.
    SQL> SELECT  *
      2    FROM  T_ID
      3  /
            ID       FLAG
             1          0
             2          0
             3          0
    SQL> And if you want to create table of objects:
    SQL> CREATE OR REPLACE TYPE T_ID AS TABLE OF OBJ_ID
      2  /
    Type created.
    SQL> CREATE TABLE T_ID_TBL(
      2                        OBJ_ID_TBL T_ID
      3                       )
      4    NESTED TABLE OBJ_ID_TBL
      5    STORE AS OBJ_ID_TBL
      6  /
    Table created.
    SQL> INSERT
      2    INTO T_ID_TBL
      3    SELECT  CAST(COLLECT(OBJ_ID(ID,FLAG)) AS T_ID)
      4      FROM  V_ID
      5  /
    1 row created.
    SQL> SELECT  *
      2    FROM  T_ID_TBL
      3  /
    OBJ_ID_TBL(ID, FLAG)
    T_ID(OBJ_ID(1, 0), OBJ_ID(2, 0), OBJ_ID(3, 0))
    SQL> SY.

  • Isssue when collecting the transport request for a query and its elements

    Dear All,
    When collecting a query and its elements, only the query is getting collected in to the request and not the elements and I an error is getting displayed as You can not use request xxxxx and elements could not be saved. This is in bw 3.5.
    Can anyone suggest?
    Regards,
    Ram

    Hi,
    In the transport connection make sure that all the elements for the query which you need are manually checked.
    Just drop down the menu and see the elements of the query and check if they all are selected or not.
    Here you can also see if the elements are already present in some other TR.
    Just delete all those TR's before creating this new TR.So that these objects are unlocked or it will not added to your new TR niether it will give an error.
    Also make sure that all the elements have same data package and none of the query elements are assigned to temp package or any other package.
    Once you are sure that all the elements are checked and above told issues are corrected then only create the transport and release them.
    Thanks
    Ajeet

  • TFS 2010: Query over all Collections and Team Projects

    Hi,
    is it possible to generate a query which queries all collections and team project on a TFS?
    For example if I want to know all work items assigned to me. Actually I can only query over a collection and not over the complete TFS.
    How can I do this?
    Thanks,
    Mat

    Hi Mat,
    Thank you for your post.
    You may need write a TFS API to list all team project collections in server. For detail information, you can refer to Taylaf's blog
    Retrieve the List of Team Project Collections from TFS 2010 Client APIs and Paul's blog
    List all TFS Project Collections and Projects.
    I hope this information will help resolve this issue.
    If anything is unclear, please free feel to let me know.
    Regards,
    Lily Wu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • 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

  • 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

  • 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

  • SCCM2012: Can you create a Query-based "User Collection" using an IP Subnet (or IP Address range) in the Query?

    The topic says it all (I hope).  I am new to 2012 and I have tried to accomplish this feat all day, which includes researching online, but I have had zero success in finding anything helpful.
    Obviously I can create "Device Collections" based on the IP Subnets, and I can do a "Direct Rule" in "User Collections" for the desired IP Subnet, but I do not want to do this because I need the results to update if/when
    any changes occur during a "scheduled/incremental update".
    The only thing I could find for the "User Collections" was this:
    select *  from  SMS_R_User where SMS_R_User.FullUserName = SMS_R_User.UserName and SMS_R_System.IPAddresses like "111.11.1%"
    EXAMPLE (Query for Devices):
    select *  from  SMS_R_System where SMS_R_System.IPAddresses like "111.11.1%"
    Is there a way to Query SCCM (2012) and display the Usernames of computers that login to the (sole) Domain through a specified (or desired) IP Subnet?

    Why do you want to install software by location for a user? Why do you care?
    Why would you want to create a collected of Users with software installed? PCs have the SW install not users so how would you use it?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ
    I was asked to setup these (Device and User Collections) in this manner so we can limit future distributions/deployments of Applications (and/or Packages) and (OS) Images by these groupings.  Apparently there will be occasions where deployments will need
    to be segmented as such because the company wants to have them grouped in this manner.  If there is a better option available than this, which I would not doubt since I am new to SCCM 2012, then I would appreciate the information.
    IMO, you need to go back to the person asking and get and better understand of exactly what they want and more importantly why.  Making a collection, just in case doesn't make sense.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • 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.

  • 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).

  • SSCM 2012 R2 IP Subnet based Device Collection

    HI,
    I have to create a IP Subnet based Device Collection , are we have to install the ccm clients on all machines first to create the IP subnet based Device Collection??
    Can you please share the step by step docs to create the IP Subnet based device collection in SCCM 2012 R2?
    Shailendra Dev

    Hello, As has already been mentioned this will require the SCCM client to be installed on the workstations to pick up the IP address and may require a Hardware Inventory cycle to have been ran (not 100% certain of the HW Inv requirement, give it a try without
    and see!).
    Create the collection as you would normally.
    right click the collection and select properties. Click into the membership rules tab
    select add rule > query rule
    Type a name "IP Subnets" and then click "Edit query statement"
    Click "Show Query language at the bottom and enter the below query making changes to the IP address.
        select *  from  SMS_R_System where SMS_R_System.IPSubnets like "172.16.5%"
    Update the collection membership. Job done.
    I am not sure how whether this information will remain bang up to date e.g. if a machine moves subnets it may not instantaneously update the data in the database regarding IP subnets.

  • Nested Security Groups in Device Collections

    Hi all,
    Is it possible to create a device collection with a dynamic query containing nested Security Groups(Active directory).
    Following is the a sample-
    Security Group 'A' has the following members-
    1) Security Group 'C'
    2) Security Group 'D'
    3) User 'John'
    4) User 'Dave'
    I'm trying to create a device-collection in SCCM 2012 referencing this Security Group 'A' and my intent is to have all members of SG 'C' & 'D' to be part of it along with John & Dave.
    thanks in advance.

    Within ConfigMgr, "Security Group A" will be listed as a Security Group Name with all the direct members of "Security Group A" and the members of "Security Group B" and "Security Group C".
    So, simply querying for "Security Group A" should be sufficient.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Device Collections stuck with Hourglass

    I did a fresh install of SCCM 2012 R2 on a Server 2012 R2 server, along with SQL 2012. 
    I didn't run into any real issues during the install, outside of finding various pre-requisites I had to manually add/install before SCCM 2012 would install.
    At this point it's installed and I've got the management console up, however, there are a few problems right off the bat I'm not sure why would exist.
    1. Device collections have hourglasses next to them. I created one new device collection that queries Active Directory, and this one is also stuck with an hourglass next to it.
    "All Desktop and Server Clients" has a member count of 94 it appears, but also has an hourglass on its icon.
    The new
    collection I created with one Query of AD OU rule, has 0 member count with an hourglass, even though I know the OU contains like 40 computers. 
    2. colleva.log shows no errors but has nothing in the log for past 12 hrs or so
    3. Also I have 3 Critical components and 6 Warnings. Sheesh, a bit overwhelming for a fresh install. Is this supposed to be normal or am I going to have to delve into all these logs and
    reverse engineer what's going on?
    Critical:
    SMS_DATABASE_NOTIFICATION_MONITOR
    SMS_STATE_SYSTEM
    SMS_ENDPOINT_PROTECTION_MANAGER
    Warning:
    SMS_NOTIFICATION_SERVER
    SMS_MP_CONTROL_MANAGER
    SMS_EXECUTIVE
    SMS_SITE_SQL_BACKUP
    SMS_COLLECTION_EVALUATOR

    Hi,
    Have you checked the log file SmsAdminUI.log? It records Configuration Manager console activity.
    Maybe it can give us some clues.
    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.

  • OU based Device Collection Membership not updated frequently

    Hi,
    I have create  one OU based device Collection and  checked Used incremental updates for this collection  under Membership rules but whenever any Computer object moved form this OU to another OU than such Device is not removed
    from same OU based Device Collection... the Collection membership change is not happening properly even after i did update membership of that OU based device collection..
    My requirement is whenever any Computer object added or removed in/from any OU in AD than  the membership of corresponding OU based device collection should up updated within 5-10 minutes  how i can do this .
    To achieve this I done below configuration but its membership of the collection not updated... please guide..
    Shailendra Dev

    To add to Jorgen, note, there is going to be more to it than just AD discovery.
    What exactly does your query look like?
    Exactly how often is both your Hardware inventory and Heartbeat discovery set to? Do you have SW inventory enabled?
    Just to get thing out there IMO the requirement updated within 5-10 minutes is nuts.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Unable to initialize capture device and device control in HDV

    I shot with a Sony HVR-Z1U/Z1N and am using a Sony HDV 1080i tape deck to digitize.
    I recently purchased a MacBook Pro and installed FCP Pro 5 on it. After getting over some time code issues we were chugging along, when on the 4th tape the image on the log and capture screen suddenly dissapeared (I could get audio and could see the image on the tape deck). Well after taking the tape out, checking and rechecking it I popped it back in and ever since then, I have been getting this error mssg "Unable to initialize capture device and device control."
    I have tried deleting the preferences and starting from scratch. If I do that, and choose the easy setup with HDV- 1080i60, it gives me this error "Unable to locate the following external devices- HDV (1440 X 1080) 30fps.
    I upgraded to FCP 5.1.2 this morning and upgraded the OS to 10.4.7 and QT to 7.1.3 and still no change.
    Im at my wits end, Ive been working on this for a whole week now.
    Thank you,
    Bugs

    It has been reported to take more than one attempt to correct the installation but, if properly executed on a machine without other system problems, the QT reinstall process does work. The key element here is you must reinstall QT after you trash the receipts. The process is listed below.
    x
    To do a full quicktime reinstall.
    Go to /library/receipts and delete any files that say Quicktime followed by a number e.g. Quicktime703.pkg
    Go to the Apple quicktime site and download the appropriate version of Quicktime to your hard drive.
    Run the Quicktime installer.
    Repair Disk Permissions for your System Disk (Disk Utility > Select the system disk > Repair Disk Permissions)
    Reboot
    If this doesn't work, then the problem lies elsewhere:
    1. your system - user preferences, firewire ports or other system elements.
    2. your equipment - camera/deck/firewire cables.
    3. your process - not setting up the software properly or using the software erroneously.
    Listed below is a troubleshooting process. Not all steps are appropriate but the general process of isolating the problem is useful.
    Troubleshooting Steps for OS X
    by Jan Johannsen (Collected from: Apple>User Tips Library>User Tips Contributions forum)
    FIRST AID
    01 Completely shutdown, wait a 5 minutes, restart
    02 Make sure you're not running out of free space on the System volume
    03 Check/fix the filesystem using Disk Utility &/or Diskwarrior
    04 Repair permissions using Disk Utility
    05 Create a new user account, and see if the problem persists there
    06 Clear system & user caches
    07 Run FCP Rescue
    08 Unplug all USB, Firewire devices except Apple mouse
    09 Startup in SafeBoot mode, and see if the problem persists there
    10 Reset system firmware
    MORE SERIOUS TROUBLESHOOTING
    11 Reapply the latest combo updater
    12 Run the Apple hardware diagnostic CD
    13 Check the hard drive for bad blocks
    14 Take out 3rd party RAM
    15 Unplug 3rd Party PCI cards
    16 Reset PMU
    17 Archive and reinstall the OS
    18 Reinstall the system from scratch
    19 Send the machine back to Apple

Maybe you are looking for

  • Locked out!

    Hi, my brother locked me out of my ipod overnight and when i now try and use it i get the message  -  ipod is disabled connect to itunes. The issue here is that the pc with my itunes account on no longer works. am i right in thinking if I conect to a

  • ETF charges - what can I expect?

    I understand I've already asked about how much the ETF itself would be, and I understand that it's $350. I just want to know; are there other charges? Like taxes? Surcharges? I've done a little looking around and found that several people have had so

  • Photos missing from Camera Roll but but not from Whatsapp

    This is some weird situation here. I got my new iphone (6). Old one was 4s. I backuped to my computer, then restored from backup for new iphone. But last 10-12 photos are missing from camera roll but when i try to send a photo to one of my whatsapp c

  • Add one same literal to each and every field in a collection

    I need to add a semicolon to each and every field in my collection (I will afterwards write it to a CLOB and have the data opened in Excel as a CSV file). I mean I have a nested table with, say 10 fields. For each index in the collection, I need to b

  • How do i resize a picture under iPhoto?

    help, i hate this stupid thing