I'm looking to get a report that will show me how many devices we have in each location. The best way to do this would be by using OU information.
I located the script on this page that will show me each OU but would like to modify it so that it so it shows a more descriptive name instead of the OU. Is this something easy to adjust?
select
ou.ou,
count(*) as 'total'
from
(SELECT sys.ResourceID, max(OU.System_OU_Name0) AS 'OU' FROM dbo.v_R_System AS sys INNER JOIN dbo.v_RA_System_SystemOUName AS ou ON sys.ResourceID = ou.ResourceID GROUP BY sys.ResourceID) ou
group by
ou.ou
Order by
ou.ou
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.
I'm looking to get a report that will show me how many devices we have in each location. The best way to do this would be by using OU information.
I located the script on this page that will show me each OU but would like to modify it so that it so it shows a more descriptive name instead of the OU. Is this something easy to adjust?
Share this post
Link to post
Share on other sites