For full details see: http://www.myitforum.com/forums/Need-some-SQL-help-think-its-simple-m234978.aspx
selectU.Name0 as 'Bruger',-- U.displayName0 as 'Bruger',MU.FullName as 'Brugernavn',replace(max(ou.User_OU_Name0),'ITCSYD.LOCAL/BRUGERE/','') as OU,round(sum(MUS.UsageTime)/60.0,2) as 'Forbrug (min)'fromdbo.v_R_System Rjoin dbo.v_MonthlyUsageSummary MUS on R.ResourceID = MUS.ResourceIDjoin dbo.v_MeteredFiles MF on MUS.FileID = MF.MeteredFileIDjoin dbo.v_MeteredUser MU on MUS.MeteredUserID = MU.MeteredUserIDjoin dbo.v_R_User U on U.Unique_User_Name0 = MU.FullNameleft join v_RA_User_UserOUName ou on ou.ResourceID = U.ResourceIDwhereMF.ProductName = @RuleNameGroup byU.Name0,MU.FullName,ou.ResourceIDorder byU.Name0
![]()

Steve Gale: Just downloaded this. Can anyone tell me if the cache-clearing is supp...
Robert Wood: Ryan, you are saying the ping uses the FQDN?, because the only way it ...
Ryan Ephgrave: Are you talking about the WOL tool? I only check for the IP when I hav...
Robert Wood: Hi we have right click tools installed with SCCM 2012, I have noticed...
Garth Jones: Wow that is cool thanks!!...