Skip to content

Limit SQL Report to a Collection

Featured Replies

I created this report to look for driver versions on our network after I edited the .mof file to look for it and everything seems to be pulling in great but I want to be able to limit this to a collection. Does anyone know how I can add that to this report.

 

 

 

 

SELECT
v_GS_NETWORK_DRIVERS.ResourceID
,v_GS_NETWORK_DRIVERS.DriverDate0
,v_GS_NETWORK_DRIVERS.DriverDesc0
,v_GS_NETWORK_DRIVERS.DriverVersion0
,v_GS_NETWORK_DRIVERS.WakeOnMagicPacket0
,v_GS_NETWORK_DRIVERS.RemoteWakeEnable0
,v_GS_NETWORK_DRIVERS.ProviderName0
,v_GS_NETWORK_DRIVERS.MediaType0
,v_GS_SYSTEM.Name0
FROM
v_GS_SYSTEM
INNER JOIN v_GS_NETWORK_DRIVERS
ON v_GS_SYSTEM.ResourceID = v_GS_NETWORK_DRIVERS.ResourceID

 

 

Thanks!

 

  • Author

Thanks! I think I got it. Could you possibly help me add the model of the computer and PC Bios Version to this report?

 

SELECT
v_GS_NETWORK_DRIVERS.ResourceID
,v_GS_NETWORK_DRIVERS.DriverDate0
,v_GS_NETWORK_DRIVERS.DriverDesc0
,v_GS_NETWORK_DRIVERS.DriverVersion0
,v_GS_NETWORK_DRIVERS.WakeOnMagicPacket0
,v_GS_NETWORK_DRIVERS.RemoteWakeEnable0
,v_GS_NETWORK_DRIVERS.ProviderName0
,v_GS_NETWORK_DRIVERS.MediaType0
,v_GS_SYSTEM.Name0
FROM
v_GS_SYSTEM
INNER JOIN
v_FullCollectionMembership ON v_GS_SYSTEM.ResourceID = v_FullCollectionMembership.ResourceID
INNER JOIN v_GS_NETWORK_DRIVERS
ON v_GS_SYSTEM.ResourceID = v_GS_NETWORK_DRIVERS.ResourceID
WHERE (v_FullCollectionMembership.CollectionID = @collid )

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.