Report to list all computers and their collection membership

Hi
I am currently working on a site where direct membership is used for collections but a need has arisen to move to AD Queries.
I have created a simple powershell script that creates groups based on the contents of a csv file and another script which populates this with the members listed in another csv file.
To help speed up the process is there a way to generate a report that lists ALL Computers and their Collection membership?
The only reports I seem to find that are built in require an inputted value of either computer name of collection ID. I simply need a report that lists Computer Name is column 1 and Collection Name in column 2 for all computers and all collections.
Many Thanks,
Matt Thorley

select 
FCM.Name,
C.Name
from 
dbo.v_Collection C
join dbo.v_FullCollectionMembership FCM on C.CollectionID = FCM.CollectionID
Thanks to Garth for original query. I just modified it :)
Anoop C Nair (My Blog www.AnoopCNair.com)
- Twitter @anoopmannur -
FaceBook Forum For SCCM

Similar Messages

  • Create report to list all computers with chrome or mozilla browser al editions

    Hi All,
    I have SCCM 2007 R3 and I need to create report to list all computers with chrome or Mozilla browser all editions. any help?
    Thanks,
    Kareem Behery

    The above one is SMS collection query. For SQL report you may try the below query: 
    query for IE 10
    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_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID
    = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName
    = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath
    like "%prog%internet%" and SMS_G_System_SoftwareFile.FileVersion
    like "10.%"
    query for IE 9
    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_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID
    = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName
    = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath
    like "%prog%internet%" and SMS_G_System_SoftwareFile.FileVersion
    like "9.%"
    query for IE 10
    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_SoftwareFile on SMS_G_System_SoftwareFile.ResourceID
    = SMS_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName
    = "iexplore.exe" and SMS_G_System_SoftwareFile.FilePath
    like "%prog%internet%" and SMS_G_System_SoftwareFile.FileVersion
    like "11.%"

  • How can I list all users and their DEFAULT tablespace?

    How can I list all users and their DEFAULT tablespace?
    Peter

    Peter, the following short article that lists the most heavily used Oracle rdbms dictionay views might be of interest based on your question:
    How do I find information about a database object: table, index, constraint, view, etc… in Oracle ? http://www.jlcomp.demon.co.uk/faq/object_info.html
    HTH -- Mark D Powell --

  • BI Report - List all users and their assigned roles

    Hello,
    i need a report, which lists me all users and their roles.
    Which table stores this membership information about the users?
    USR or UGP does not have any values

    Hi Reynaldo,
    You can go to SE16 -> table name "AGR_USERS" and see the records for all users. Arrange them in ascending order by name and you will get the report what you have mention above.
    Download it and put it in EXCEL.
    Best Wishes.
    Kumar

  • Getting list of all users and their group memberships from Active Directory

    Hi,
    I want to retrieve a list of all the users and their group memberships through JNDI from Active Directory. I am using the following code to achieve this:
    ==================
    import javax.naming.*;
    import java.util.Hashtable;
    import javax.naming.directory.*;
    public class GetUsersGroups{
         public static void main(String[] args){
              String[] attributeNames = {"memberOf"};
              //create an initial directory context
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.PROVIDER_URL, "ldap://172.19.1.32:389/");
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
              env.put(Context.SECURITY_CREDENTIALS, "p8admin");
              try {
                   // Create the initial directory context
                   DirContext ctx = new InitialDirContext(env);     
                   //get all the users list and their group memberships
                   NamingEnumeration contentsEnum = ctx.list("CN=Users,DC=filenetp8,DC=com");
                   while (contentsEnum.hasMore()){
                        NameClassPair ncp = (NameClassPair) contentsEnum.next();
                        String userName = ncp.getName();
                        System.out.println("User: "+userName);
                        try{
                             System.out.println("am here....1");
                             Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should be returned
                             System.out.println("am here....2");
                             Attribute groupsAttribute = attrs.get(attributeNames[0]); // memberOf
                             System.out.println("-----"+groupsAttribute.size());
                             if (groupsAttribute != null){
                                  // memberOf is a multi valued attribute
                                  for (int i=0; i<groupsAttribute.size(); i++){
                                  // print out each group that user belongs to
                                  System.out.println("MemberOf: "+groupsAttribute.get(i));
                        }catch(NamingException ne){
                        // ignore for now
                   System.err.println("Problem encountered....0000:" + ne);
                   //get all the groups list
              } catch (NamingException e) {
              System.err.println("Problem encountered 1111:" + e);
    =================
    The following exception gets thrown at every user entry:
    User: CN=Administrator
    am here....1
    Problem encountered....0000:javax.naming.NamingException: [LDAP: error code 1 -
    000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data 0
    ]; remaining name 'CN=Administrator'
    I think it gets thrown at this line in the code:
    Attributes attrs = ctx.getAttributes(userName, attributeNames);
    Any idea how to overcome this and where am I wrong?
    Thanks in advance,
    Regards.

    In this sentence:
    Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should
    It seems Ok when I add "CN=Users,DC=filenetp8,DC=com" after userName, just as
    userName + ",CN=Users,DC=filenetp8,DC=com"
    But I still have some problem with it.
    Hope it will be useful for you.

  • Modifying my script to list all folders and their lastwritetime on remote computers

    Hello,
    I've got the following script that is trying to report on a list of computers (in computerlist.txt) the contents of the C:\Users folder and list in the resulting CSV File the Name of the computer, the Folder Name and the Date it was last changed (sort by
    most recent first).
    $servers = GC C:\Powershell_Scripts\computerlist.txt
    ForEach($server in $servers) {
    If (Test-Connection -comp $server -count 1 -quiet) {
    Get-Childitem ("\\$server\c$\Users") | Where-Object { $_.mode -like 'd*' } | Select-Object $server, Name, LastWriteTime | Export-Csv C:\Apps\Powershell_Scripts\LastLogin\Reports\directoryFile.csv
    I'm part way there but my script is not showing each computer..only the last computer in the list.
    Please assist with making the necessary changes to this script.
    Thank you.

    Thanks for the reply Mike.
    I am running version 3.  I've added the -Append to my script but it doesn't seem to like it.  Here's the error I get:
    Export-Csv : Cannot append CSV content to the following file: C:\Powershell_Scripts\Reports\directoryFile.csv. The appended object does not have a property that corresponds to the following column: ServerABC. To proceed with mismatched
    properties, add the -Force switch and retry.
    Where ServerABC is the name of the first server in computerlist.txt. 
    Here is how I added the -Append:
    $servers = GC C:\Powershell_Scripts\computerlist.txt
    ForEach($server in $servers) {
    If (Test-Connection -comp $server -count 1 -quiet) {
    Get-Childitem ("\\$server\c$\Users") | Where-Object { $_.mode -like 'd*' } | Select-Object $server, Name, LastWriteTime | Export-Csv -Append C:\Apps\Powershell_Scripts\LastLogin\Reports\directoryFile.csv
    The report being written out also isn't in the format I need.
    ServerABC Name LastWriteTime
    User1 5/12/2014 16:11
    ADMINI~1 7/30/2012 13:37
    User2 4/1/2014 18:23
    How do I modify this to show the following output instead:
    Computer Name LastWriteTime
    ServerABC User1 5/12/2014 16:11
    ADMINI~1 7/30/2012 13:37
    User2 4/1/2014 18:23
    ServerDEF User1 6/14/2014 14:12
    ADMINI~1 6/24/2012 15:38
    User2 5/1/2014 20:25
    Thank you.

  • List of photos and their collections

    Is there a way to print or view a list of all imported photos and the collections that they belong to? Right clicking on each image to view this type of info is pretty cumbersome.

    Well, the basic need for this feature is because I bracket my shots a lot. When I do an import, I import all and then delete the obvious that I don't want to keep. The remaining shots (usually shot within fractions of seconds of another) are borderline. I keep those. Sometimes I end up with two very similar shots in multiple collections, but they were shot milli-seconds apart.
    If I make an update to a specific shot that is milli-seconds or so different than another, then the one that is a millisecond away is not updated. I would like to be able to update the same shot at the same time. My request is based on a desire to identify the one that is a milli-seconds different, delete it and then add the primary one to the collection so that all can be updated at the same time. Does that help?
    In the Grid view, with "All Photographs" selected and photos sorted by capture time, these photos that are milli-seconds apart should be grouped together. You can make these changes to your photos in this grid view. Your changes to the collection status of photos has to be done one-by-one (or group by group). When you are looking in Grid view, you make the necessary changes to this group of photos that are milliseconds apart by updating the photos, moving the proper photos to their collections, and then deleting the ones you don't want. I simply don't see any benefit of obtaining a list, as this doesn't seem to give you any advantage over what I just described.

  • List all users and their own roles.

    Hi everybody!
    I have to make a list of all sap users and their own separated roles by user. There are any transaction to do it? The SUIM transaction gives me a sap user and their own roles, but if I try with a lot users It gives me all the roles that are using those users but don't give me the roles for each one.
    Thanks a lot.
    Best regards.

    Hi Reynaldo,
    You can go to SE16 -> table name "AGR_USERS" and see the records for all users. Arrange them in ascending order by name and you will get the report what you have mention above.
    Download it and put it in EXCEL.
    Best Wishes.
    Kumar

  • Powershell to list all computers and the complete OU path

    I am trying to get a list of All Computers within the domain Prefixed UK and have it export the list to a CSV with the full OU Path.
    So far I can get the computers but not the OU
    Get-ADComputer -Filter 'SamAccountName -like "UK*"' | Select -Exp Name 
    Thanks

    Hi,
    What do you mean by 'complete OU path'? If you look at the DistinguishedName property of the returned computer object, you'll see the full path there.
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • List all users and their OUs they belong to

    Hi,
    I would like to list all users with the OU they belong to and furthermore add an specific attribute that was added...
    I can get both information separately:
    get-aduser -SearchBase 'OU=DOMAIN,DC=mygroup,DC=re,DC=lan' | FT name
    and
    Get-ADOrganizationalUnit -SearchBase 'OU=DOMAIN,DC=mygroup,DC=re,DC=lan' -properties name,budgetanalytics | FT name,budgetanalytics
    but I'd like to get the list containing user1, its OU, its budgetanalytics
    Thanking you in advance,
    Cédric

    Thanks for your reply!
    I tried the following:
    $Users = get-aduser -SearchBase 'OU=Mes Utilisateurs,DC=itced,DC=lan' -filter '*'
    $OU = $User.distinguishedname -split ',',2 | select -last 1
    $output = @()
    Foreach($User in $Users){
    $budgetanalytics = Get-ADOrganizationalUnit -SearchBase $OU -Properties objectGUID
    $Object = New-Object PSObject                                       
    $Object | add-member Noteproperty user $user.name         
    $Object | add-member Noteproperty OU $OU                       
    $Object | add-member Noteproperty objectGUID $objectGUID       
    $output += $Object
    $output
    but I get the following
    user                                             
    OU                                              
    objectGUID                                      
    User1                                            
    OU=Mon OU,OU=Mes Utilisateurs,DC=itced,DC=lan    {Microsoft.PowerShell.Commands.Internal.Forma...
    User2                                            
    OU=Mon OU,OU=Mes Utilisateurs,DC=itced,DC=lan    {Microsoft.PowerShell.Commands.Internal.Forma...
    Why do I get "Microsoft.PowerShell.Commands.Internal.Forma..." instead of the actual objectGUID of the Organizational Unit
    Thanking you in advance

  • Command to  provide list of all objects and their scripts from database

    Hi,
    How do i get the list of all objects and their scripts/source from database?
    I guess using dbms_metadata package or Toad tool we can achieve the above task
    But i do not know the steps to get the objects and their scripts.
    Im using oracle database 11g R2 11.2.0.2
    Kindly ge me the advice
    Thanks in Advance

    How do i get the list of all objects and their scripts/source from database?
    I guess using dbms_metadata package or Toad tool we can achieve the above task
    But i do not know the steps to get the objects and their scripts.
    Im using oracle database 11g R2 11.2.0.2If you want the all the metadata of whole database, then it is quiet difficult to get from DBMS_METADATA, as it is very complex because you need to gather for each object of each schema in whole database and to spool.
    http://www.orafaq.com/node/57
    I want to know, what is the use of entire database metadata, Certainly need of objects of metadata.
    or if you want to whole database, then i suggest you go for export full backup and import as impdp sqlfile option,

  • List of users and their decimal notation settings in SAP system

    Hi all, i'm looking to get my hands on a list of all users in our SAP system and their respective decimal notation settings? I know that these can be mass changed using SU10 however I am unable to determine how to view a list of users and their settings.
    Thanks,
    James

    Hi James,
    You can find many useful reports, in SUIM transaction to see user details, but not decimal notation field. I don't know a report to show decimal notations, but as a workaround, in order to see the decimal notation, you can check "USR01-DCPFM" by using "SE16".
    Best regards,
    Orkun Gedik

  • HT1420 My old computer crashed so I bought this new one. I can't get my prevouis purchases and my new purchases will not let me add to my IPODs. I deauthorized all computers and just authourzed ths one. my new one. How do I get my music back and how do I

    My old computer crashed andI bought a new one. When I went to Itunes I deauthorized all computers and then authorized my new one but I can not get my prevous purchases and I can not add my new purchases to my IPods with out it deleting all the music. How can I transfer everything that was on the old computer to this new one?

    Whether you can redownload previous purchases depends upon the type of item (audiobooks and ringtones are one-time only downloads), what country that you are in (music, films, TV shows can't be redownloaded in all countries), and whether the item is still in your country's store (content providers occasionally remove their items) - what you can redownload will show under the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage
    Or you should be able to copy purchases back from your iPod via the File > Devices > Transfer Purchases menu option (if the drop-down menus aren't showing then control-B should get them to show).
    If you have music from other sources on your iPod (e.g. copied from CDs) then there are some programs listed half-way down this page which should be able to copy them back : https://discussions.apple.com/docs/DOC-3991
    Or do you have a copy of them anywhere else e.g. on your backup of your downloads/library that you can copy them onto your new computer from ?

  • How do I download my previously purchased songs (on a different computer) on a PC running XP? I have followed the instructions but none of it allows me to download my songs. I deauthorized all computers and authorized this one only but it didn't help.

    I had to change computers and cannot access my old drive. iTunes shows me the list of songs but I cannot get most to play. Instead I get a message saying "cannot locate"
    I have tried following the support tutorials but it still does not allow me to download my previous purchases.
    I tried de-authorizing all computers and then re-authorizing this on but it still doesn't allow me to access most of my songs.

    It sounds like you might have broken links to your content. Either repair these by putting the files you've recovered where iTunes expects to find them or delete the broken entries then go to iTunes Store > Purchased > Music > Not on This Computer, and click the download links.
    If you have an Apple device see also Recover your iTunes library from your iPod or iOS device.
    tt2

  • T code/ report to list all material sales pricing condition with deletion i

    I create sales org/ material level pricing conditions in VK11. Some unwanted material pricing conditions are with Deletion indicator active. Iu2019m looking for a report to list all material sales pricing condition with deletion indicator active.
    Please advice me on this.

    Hi Goto v/ld and select 16 which stands for individual prices, and then populate sales organization, distribution channel, customer ,material numbers,etc...and tick "Cond.marked for deletion" check box in "list screen" tab which is the most important, execute you will be able to see all material pricing condition even though it had been deleted.

Maybe you are looking for

  • Renaming Time Capsule Disk?

    Did a search, didn't find a definitive answer. I'm looking to rename my TC drive. In Finder, under shared, it mounts as the name I chose. However, when I click on that, inside, there is the "sharepoint" that's named "Data". That mounts on my desktop

  • How to add invoices while creating Batch Payment in Oracle Apps R12

    Hi all, how to add invoices while creating Batch Payment in Oracle Apps R12 Thanks

  • Non helpful error

    Hi all, When calling the OCIColAppend function, I get an error. OCIErrorGet and OCIExtProcRaiseExcp tell me that the error is ORA-21500: internal error code, arguments: [], [], [], [], [], [], [], [] The error reference tells me Cause: This is the ge

  • Can a basic site be created in Muse and then exported to DW?

    Can a basic site, created with Muse, be uploaded into DW to make it even more robust?

  • Block Invoice amount greater than PO amount

    Dear Expert, Currently, I set a tolerance (incoming invoice--> define vendor-specific tolerance) to allow user to post Invoice greater than Amount received (case is PO service for partial receive). However, we want that it will block user to post inv