Winscripter
  WSH
  Forums
  Downloads
  Books
  Links
  Amazon




Login
Register

© winscripter.com
1998-2004







File Name: FreeSpace
File Size: 2,101 bytes
Downloaded: 4332 times
Posted by Daren on Sunday, March 21, 2004 (PST)
Click here to download this file
FreeSpace prints out the total size and free space of all hard disks on a local or remote machine.

FreeSpace prints out the total size and free space of all hard disks on a local or remote machine. Output is display in console.  You must be logged in as someone with sufficient permission to query the WMI provider. Especially true for accessing remote machines.

 

Example - local machine

FreeSpace 

Drive Space on localhost
Drive : C:
Free  :  17189 MB (0.30%)
Size  :  57177 MB
-------------------------

 

Example - Remote machine

FreeSpace Server1

Drive Space on Server1
Drive: C:
Free:  500 MB (0.50%)
Size: 1000 MB
-------------------------

Add Your Comment



WSH and ADSI Administrative Scripting

New Articles
  • List installed COM objects and associated ProgIDs
    Script: Lists all COM Objects and their associated ProgIDs (If available). Win32_ClassicCOMClassSetting

  • Script: File Rotator
    Script: Rotate files where the most current file has the lowest number in the archive. When files exceed the retention period, they are deleted. Typically used for log files, backups, etc..

  • Script: Create IIS Website and DNS record
    Script: Dan Casier sent me this script that will create a website and appropriate DNS record. The script is intended for Windows 2000 Server with local DNS and necessary DNS mof installed.


  • Winscripter   |  WSH   |  Forums   |  Downloads   |  Books   |  Links   |  Amazon