Jump to content


  • 0
wmmayms

All collections of a specific machine

Question

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!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.