Skip to content

All collections of a specific machine

Featured Replies

This report will show you all the collections that a specific computer is member of.

This is how it could look:

post-2500-12559631855993_thumb.jpg

 

To Create this report:

1. Create a new report and give it a good name

2. Paste the following code:

 

SELECT

b.CollectionID,

b.Name

 

FROM

v_FullCollectionMembership a,

v_Collection b

 

WHERE a.CollectionID = b.CollectionID

AND a.Name = @computer

 

ORDER BY b.name

 

 

3. Click on the prompts button

4. Create a new prompt and give it the name: "computer"

5. Enter a prompt text

6. Provide the following SQL Statement:

 

SELECT

ResourceID,

Netbios_Name0

 

FROM

v_R_System

 

ORDER BY Netbios_Name0

 

Should look like this:

post-2500-12559628506407_thumb.jpg

 

7. Click OK everywhere

 

You are all done. HF with the report!

This report will show you all the collections that a specific computer is member of.

 

 

ResourceID,

Netbios_Name0

 

 

 

Thanks!! I had to remove the ResourceID from the prompt to get the report to return the results.

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.