How to determine the total space of all drives on a server?

  • I am looking for the easiest approach in the point of view from DBAs.

    Any input is greatly appreciated.

  • xp_fixeddrives

    Or maybe use VBScript and the FileSystemObject. That might be the easiest.

  • Use the free PSINFO utility from http://www.sysinternals.com

    C:\>PSINFO -D DISK \\SERVERNAME

    PsInfo v1.73 - Local and remote system information viewer Copyright (C) 2001-2005 Mark Russinovich Sysinternals - www.sysinternals.com

    System information for \\SERVERNAME:

    Volume Type       Format     Label                      Size       Free   Free     A: Removable                                                          0.0%     C: Fixed      NTFS                              37.27 GB   20.50 GB  55.0%     D: Removable                                                          0.0%     E: CD-ROM                                                             0.0%     F: CD-ROM                                                             0.0%

    C:\>

  • See http://www.sqldbatips.com/showcode.asp?ID=4  I use the script often and it works great.

    Francis

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply