Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
Hard Disk Information Report.
saumil18
#1 Posted : Thursday, July 08, 2010 8:06:49 PM

Rank: Premium user

Groups: Premium Users
Posts: 6
I can see computer's hard drive partition and free space on Disk information tab.
how can i generate report shows these details for all computers in a single report?
Lansweeper
#2 Posted : Friday, July 09, 2010 12:21:48 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,007
Code:
Select Top 1000000 dbo.tblComputers.Computername,
  dbo.tblComputers.ComputerUnique, Web40OSName.OSname,
  dbo.tblOperatingsystem.Description, dbo.tblDiskdrives.Caption,
  Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 / 1024 As numeric) As
  Free, Cast(Cast(dbo.tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) As
  [Total size], Web40OSName.Compimage As icon
From dbo.tblComputers Inner Join
  dbo.tblDiskdrives On dbo.tblComputers.Computername =
    dbo.tblDiskdrives.Computername Inner Join
  dbo.tblOperatingsystem On dbo.tblComputers.Computername =
    dbo.tblOperatingsystem.Computername Inner Join
  dbo.web40ActiveComputers On dbo.tblComputers.Computername =
    dbo.web40ActiveComputers.Computername Inner Join
  Web40OSName On Web40OSName.Computername = dbo.tblComputers.Computername
  Inner Join
  tblComputersystem On dbo.tblComputers.Computername =
    tblComputersystem.Computername
Where Cast(Cast(dbo.tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) <> 0
  And dbo.tblDiskdrives.DriveType = '3'
Order By dbo.tblComputers.Computer, Cast(Cast(dbo.tblDiskdrives.Freespace As
  bigint) / 1024 / 1024 As numeric), dbo.tblDiskdrives.Caption
saumil18
#3 Posted : Tuesday, July 13, 2010 6:43:59 PM

Rank: Premium user

Groups: Premium Users
Posts: 6
Worked perfectly!. Thanks a lot.
Landert
#4 Posted : Wednesday, August 25, 2010 12:28:05 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 1
Location: Switzerland
Very good information for me also.

But is it possible to get the drives in one line? Cause i have to create a report where i have all the servers and workstations with OS, SP, CPU, Memory and Disks. Till now it was no problem. But i dont get it with the disk drives.

With this HD Information Report i have ServerX listed three times because he has three partitions. ServerY only once. ServerZ twice... and so on.

It would be great if i could use 1 line for a server or WS, even if they have 2 or three partitions. And if a server or WS just has one partition, this fields for 2nd and 3rd could be blank.

Users browsing this topic
Guest
Tag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba