Logo
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
EPL Standings
 
 
Windows Server

Windows Home Server 2011 : Maintaining Windows Home Server - Checking Free Disk Space on the System Drive

7/25/2013 6:12:25 PM

Hard disks with capacities measured in the hundreds of gigabytes are commonplace even in low-end systems nowadays, so disk space is much less of a problem than it used to be. However, remember that Windows Home Server has a system partition—drive C:—and that volume comes with a fixed 60GB size. With Windows Home Server taking up about 10- to 16GB (depending on the size of the paging file), you only have so much space left over to install other programs or store data in the Administrator account’s local folders. Therefore, it’s a good idea to keep track of how much free space you have on drive C:.

One way to check disk free space is to select Start, Computer. The Tiles view (select View, Tiles to see it) tells you the free space and the total size and displays the used portion of the disk in a graph, as shown in Figure 1. Alternatively, right-click drive C: in Windows Explorer and then click Properties. The system partition’s total capacity, as well as its current used and free space, appear in the General tab of the property sheet, as shown in Figure 2.

Figure 1. In Windows Explorer, display the Computer window in Details view to see the total size and free space on your system’s disks.

Figure 2. Right-click drive C:, and then click Properties to see the system drive’s total size and free space.


Listing 1 presents a VBScript procedure that displays the status and free space for each drive on your system.

Listing 1. A VBScript Example That Displays the Status and Free Space for the System Drive (C:)
Option Explicit
      Dim objFSO, strMessage

      ' Create the File System Object
      Set objFSO = CreateObject("Scripting.FileSystemObject")

      ' Start the display string
      strMessage = "Status Report for Drive C" & vbCrLf & vbCrLf

      ' Get the properties of drive C
      With objFSO.Drives("C")

          ' Add the volume name to the message
          strMessage = strMessage & "Volume Name: " & .VolumeName & vbCrLf

          ' Check the drive status
          If .IsReady = True Then

              ' If it's ready, add the status, total size,
              ' and the free space to the message
              strMessage = strMessage & "Status: Ready" & vbCrLf
              strMessage = strMessage & "Total space: " & _
                           FormatNumber(.TotalSize / 1073741824, 2) & " GB" & vbCrLf
              strMessage = strMessage & "Free space: " & _
                           FormatNumber(.FreeSpace / 1073741824, 2) & " GB"
              strMessage = strMessage & vbCrLf & vbCrLf
          Else

              ' Otherwise, just add the status to the message
              strMessage = strMessage & "Status: Not Ready" & vbCrLf & vbCrLf
          End If
      End With

      ' Display the message
WScript.Echo strMessage

					  

This script creates a FileSystemObject and then uses its Drives collection to return a reference to the system drive: Drives("C"). Then the script checks the Drive object’s IsReady property. If the drive is available (there’s no reason why it wouldn’t be, but you never know), a series of property values is added to the message: VolumeName, TotalSize, and FreeSpace. (Note that the last two are converted from bytes to gigabytes by dividing the property value by 1,073,741,824.) The script finishes by displaying the drive data, as shown in Figure 3.

Figure 3. The script displays the name, status, total space, and free space for the system drive.

Other -----------------
- Windows Home Server 2011 : Maintaining Windows Home Server - Checking Your Hard Disk for Errors
- Windows Home Server 2011 : Maintaining Windows Home Server - Checking System Uptime
- HP ProLiant Servers AIS : How Memory Works
- HP ProLiant Servers AIS : Memory and Cache
- SQL Server 2008 R2 : A Performance Monitoring Approach (part 3) - Monitoring Memory, Monitoring the Disk System
- SQL Server 2008 R2 : A Performance Monitoring Approach (part 2) - Monitoring the Processors
- SQL Server 2008 R2 : A Performance Monitoring Approach (part 1)
- Microsoft Systems Management Server 2003 : The Four-Phase Patch Management Process (part 2) - The Evaluate & Plan Phase, The Deploy Phase
- Microsoft Systems Management Server 2003 : The Four-Phase Patch Management Process (part 1) - The Assess Phase, The Identify Phase
- Microsoft Systems Management Server 2003 : Patch Management - Preparing for Patch Management
- Microsoft Systems Management Server 2003 : Patch Management - The Need for Effective Patch Management, Introduction to the Patch Management Process
- Windows Server 2012 : Configuring post-installation settings
- Windows Server 2012 : Enabling and disabling the graphical interface in Hyper-V
- Windows Server 2012 : Managing a Server Core installation using sconfig
- SQL Server 2012 : Running SQL Server in A Virtual Environment - EXTENDED FEATURES OF VIRTUALIZATION
- SQL Server 2012 : Running SQL Server in A Virtual Environment - VIRTUALIZATION CONCEPTS
- SQL Server 2012 : Running SQL Server in A Virtual Environment - COMMON VIRTUALIZATION PRODUCTS
- What's new and improved in SharePoint 2013 : Creating an asset library
- What's new and improved in SharePoint 2013 : Using the Office Store
- What's new and improved in SharePoint 2013 : Customizing the interface
 
 
Most view of day
- Windows Server 2012 : Managing a Server Core installation using sconfig
- Working with E-mail, Contacts, and Events : Add a Signature
- Maintaining Desktop Health : Monitoring Reliability and Performance (part 6) - Using Reliability Monitor
- Accessing and Using Your Network : Collaborating with Windows Meeting Space (part 1)
- Extending Dynamics GP with Free Software : Capturing Screenshots and sending an E-mail for support
- Microsoft Dynamics CRM 2011 : Using Advanced Find (part 2) - Organizing and Formatting Advanced Find Results
- SharePoint 2010 : Configuring Search Settings and the User Interface - Web Parts (part 1)
- Adobe Dreamweaver CS5 : Using Library Items and Server-side Includes (part 3) - Using the Library Assets Panel - Deleting an item from the Library , Renaming a Library item
- Managing Windows Small Business Server 2011 : Adding a Terminal Server (part 1)
- Maintaining Desktop Health : Understanding Windows Error Reporting (part 1) - Error Reporting Cycle, Report Data Overview
Top 10
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 3) - Creating IPv4 DHCP Scopes
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 2) - Installing DHCP Server and Server Tools
- Windows Server 2012 : DHCP,IPv6 and IPAM - Exploring DHCP (part 1)
- Windows Server 2012 : DHCP,IPv6 and IPAM - Understanding the Components of an Enterprise Network
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 3) - Translating Text with the Mini Translator
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 2) - Translating a Word or Phrase with the Research Pane
- Microsoft OneNote 2010 : Using the Research and Translate Tools (part 1) - Setting Options for the Research Task Pane, Searching with the Research Task Pane
- Microsoft OneNote 2010 : Doing Research with Linked Notes (part 2) - Ending a Linked Notes Session, Viewing Linked Notes
- Microsoft OneNote 2010 : Doing Research with Linked Notes (part 1) - Beginning a Linked Notes Session
- Microsoft OneNote 2010 : Doing Research with Side Notes (part 3) - Moving Side Notes to Your Existing Notes
 
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro