Eswar Koneti's Blog

All about Configmgr and its connected objects…….

  • About Author
      View eswar koneti's LinkedIn profile
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 107 other subscribers

  • Awards


  • FaceBook Updates

  • Catagories

  • Meta

  • Copyright!

    All the blog posts in this website are owned by Eswar Koneti and may not be reused in any mode without prior approval of Eswar Koneti. You may quote one paragraph from the blog posts if you link to the original blog post.
    Happy Reading!

SCCM report Computers with more than 1 partition

Posted by Eswar Koneti on September 10th, 2012

Here is nice report to identify computers which are with more than one partition installed on to them excludes external drives.

select CS.Name0 as [Computer name],
       MAX(OU.System_OU_Name0)as [OU],
       CS.UserName0 as [Last loggedon User],
       FCM.Sitecode ,
       OS.Caption0 AS [OS],
       OS.InstallDate0 [OS Installed Date],
       WS.LastHWScan [Recent Reported to sccm]
    
from  v_GS_COMPUTER_SYSTEM CS,
      v_FullCollectionMembership FCM ,
      v_GS_OPERATING_SYSTEM OS,
      v_RA_System_SystemOUName OU,
      v_GS_WORKSTATION_STATUS WS
where  CS.ResourceID=FCM.ResourceID and
CS.ResourceID=OS.ResourceID and
CS.ResourceID=OU.ResourceID and
CS.ResourceID=WS.ResourceID and OU.ResourceID in
(select LD.ResourceID from v_GS_LOGICAL_DISK LD where LD.Description0 not like ‘%ROM%’ and
LD.Description0 not like ‘%floppy%’ and LD.SystemName0 not like ‘null’
group by LD.ResourceID having COUNT(ld.name0)>1) and
OS.Caption0 not like ‘%Server%’
group by CS.Name0,
         CS.UserName0,
         FCM.Sitecode,
         OS.Caption0,
         OS.InstallDate0,
         WS.LastHWScan

     Customize if you require more information.    

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>