For full details see the forum post. https://social.technet.microsoft.com/Forums/en-US/configmgrreporting/thread/bbc5e667-085f-47a2-a5b6-8a5089aa9e91
SELECT DistinctR.Name0 as 'PC',
LD.FreeSpace0 as 'Free Space',
LD.Size0 as 'Size',
isnull(Share.Path0,'n/a') as 'Path'FROMdbo.v_R_System Rinner join dbo.v_GS_SERVICE Serv on R.ResourceID = Serv.ResourceIDinner join dbo.v_GS_LOGICAL_DISK LD on LD.ResourceID = R.ResourceIDleft outer join (select ResourceID, Name0, Path0 from v_GS_SHARE Where Name0 = 'Print$') Share on Share.ResourceID = R.ResourceID
WhereServ.DisplayName0 LIKE '%Windows Deployment Services%'
AND LD.Name0 = 'D:'
ORDER BYR.Name0
Recent Comments