‎11-03-2011 04:20 PM
‎11-05-2011 09:46 AM
‎11-07-2011 02:13 PM
CMCSDIT wrote:
You have a report for Device: Partition less than 10% free space what about computers Partition less than 10% free space. Can you give me a report for that?
Select Top 100 Percent tblComputers.Computername As Computer,
tblComputers.ComputerUnique, tblDiskdrives.Caption As Drive,
Cast(Cast(tblDiskdrives.Size As BigInt) / 1024 / 1024 / 1024 As Numeric) As
[Total size (GB)], Cast(Cast(tblDiskdrives.Freespace As BigInt) / 1024 /
1024 / 1024 As Numeric) As [Free in GB], Cast((Cast(tblDiskdrives.Size As
BigInt) - Cast(tblDiskdrives.Freespace As BigInt)) / 1024 / 1024 /
1024 As Numeric) As [Used Space (GB)], Cast(Cast(Cast(tblDiskdrives.Freespace
As BigInt) / 1024 / 1024 / 1024 As Numeric) / Cast(Cast(tblDiskdrives.Size As
BigInt) / 1024 / 1024 / 1024 As Numeric) * 100 As bigint) As [Free PCT],
tblFloppy.Model As [HDD Model], tblDiskdrives.Lastchanged As [Last changed]
From tblComputers Left Join
tblDiskdrives On tblComputers.Computername = tblDiskdrives.Computername
Left Join
tblFloppy On tblComputers.Computername = tblFloppy.Computername
Where Cast(Cast(Cast(tblDiskdrives.Freespace As BigInt) / 1024 / 1024 /
1024 As Numeric) / Cast(Cast(tblDiskdrives.Size As BigInt) / 1024 / 1024 /
1024 As Numeric) * 100 As bigint) < 10 And tblDiskdrives.DriveType = '3'
Order By tblComputers.Computername, tblDiskdrives.Caption, tblFloppy.Model
‎11-03-2011 05:21 PM
Select Top 100 Percent tblComputers.Computername As Computer,
tblComputers.ComputerUnique, tblDiskdrives.Caption As Drive,
Cast(Cast(tblDiskdrives.Size As BigInt) / 1024 / 1024 / 1024 As Numeric) As
[Total size (GB)], Cast(Cast(tblDiskdrives.Freespace As BigInt) / 1024 /
1024 / 1024 As Numeric) As [Free in GB], Cast((Cast(tblDiskdrives.Size As
BigInt) - Cast(tblDiskdrives.Freespace As BigInt)) / 1024 / 1024 /
1024 As Numeric) As [Used Space (GB)], Cast(Cast(Cast(tblDiskdrives.Freespace
As BigInt) / 1024 / 1024 / 1024 As Numeric) / Cast(Cast(tblDiskdrives.Size As
BigInt) / 1024 / 1024 / 1024 As Numeric) * 100 As bigint) As [Free PCT],
tblFloppy.Model As [HDD Model], tblDiskdrives.Lastchanged As [Last changed]
From tblComputers Left Join
tblDiskdrives On tblComputers.Computername = tblDiskdrives.Computername
Left Join
tblFloppy On tblComputers.Computername = tblFloppy.Computername
Where tblDiskdrives.DriveType = '3'
Order By tblComputers.Computername, tblDiskdrives.Caption, tblFloppy.Model
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now