View Remote Servers' Drive Sizes Via Command Prompt?


Recommended Posts

I want to check on some drive sizes remotely via the command prompt of some NT4 servers. Anyone know the command? I'm experiencing major brain freeze this morning and can't think of any other tools to view them. I can't log into the O/S of any of them but I can use just about any O/S to connect remotely.

Thanks!

Did you try a search engine? There are hundreds of examples on scripts.

This one looks good - http://www.adminscripteditor.com/scriptlib...view.asp?id=425

Then there are many free and pay for apps.

I use a script that runs every day and appends the free disk space to a csv file. It will enumerate actual and mapped drives. It does mean that you will need to map the drives though. Or, at least a folder on each of those drives.

'VBScript to calculate free space on hard drives
'Data appended to a csv file
'Appended data is dated

On Error Resume Next
Set WshShell = WScript.CreateObject("WScript.Shell")

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objLogFile = objFSO.OpenTextFile("c:\Drive space.csv", 8, True)
'Change path\filename to suite

strLF = Chr(13)
msgText=""
Set oFileSys = CreateObject("Scripting.FileSystemObject")
For each drvLoop in oFileSys.Drives
msgText = msgText & date & "," & drvLoop.DriveLetter & "," & round(drvLoop.FreeSpace / (1024 ^ 3),2) & vbCrLf

'Free space calculated as (1024 ^ x),y)
'For Gb x=3
'For Mb x=2
'For Kb x=1
'y=decimal places

Next 'drvLoop
objLogFile.Write msgText
objLogFile.Close

'End of script

Yes I did search but only came up with results for software. Anyway, your comment about mapping drives gave me the idea to just map the c$, d$ and e$ drives I need to check and just do a "dir" in a command prompt window. Gave me the info I needed.

Thanks! ;)

Thanks for the script site too!

  Odom said:
Just go to any explorer Window or My Computer, the details will be in the task pane
:rofl: You really have to wonder what part of

"want to check on some drive sizes remotely via the command prompt"

did you not get?? ;)

I would suggest the psinfo tool from sysinternals (now MS) with the -d flag

C:\>psinfo -?

PsInfo v1.73 - Local and remote system information viewer

Copyright ? 2001-2005 Mark Russinovich

Sysinternals - www.sysinternals.com

PsInfo returns information about a local or remote Windows NT/2000/XP system.

Usage: psinfo [-h] [-s] [-d] [-c [-t delimiter]] [filter] [\\computer[,computer[,..]]|@file [-u Username [-p Password]]]

-u Specifies optional user name for login to

remote computer.

-p Specifies password for user name.

-h Show installed hotfixes.

-s Show installed software.

-d Show disk volume information.>

example;

Volume Type Format Label Size Free Free

A: Removable 0.0%

C: Fixed NTFS system 74.54 GB 15.22 GB 20.4%

  Hambone said:
Yes I did search but only came up with results for software.

There is no "built-in" command. If you want to use the command line:

  Quote
Command Line Tools

Freeware scriptable command line network connectivity tools

T4eDirSize

Gets the free and used space of any directory or share, also counts the number of special files (encrypted, readonly, hidden, system, etc); great for monitoring free space and file statistics. You can use this command line utility to enable share monitoring in MonitorMagic. It greatly extends the standard Disk Monitor by adding details on file attributes, file count and size information. You can also use this tool to retrieve disk performance information when counting all files, thereby projecting the necessity for disk defragmentation.

Source: http://www.tools4ever.com/products/free/command/

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • SMPlayer 25.6.0 by Razvan Serea SMPlayer intends to be a complete front-end for MPV/MPlayer , from basic features like playing videos, DVDs, and VCDs to more advanced features like support for MPlayer filters and more. One of the most interesting features of SMPlayer: it remembers the settings of all files you play. So you start to watch a movie but you have to leave... don't worry, when you open that movie again it will resume at the same point you left it, and with the same settings: audio track, subtitles, volume... Other additional interesting features: Configurable subtitles. You can choose font and size, and even colors for the subtitles. Audio track switching. You can choose the audio track you want to listen. Works with avi and mkv. And of course with DVDs. Seeking by mouse wheel. You can use your mouse wheel to go forward or backward in the video. Video equalizer, allows you to adjust the brightness, contrast, hue, saturation and gamma of the video image. Multiple speed playback. You can play at 2X, 4X... and even in slow motion. Filters. Several filters are available: deinterlace, postprocessing, denoise... and even a karaoke filter (voice removal). Audio and subtitles delay adjustment. Allows you to sync audio and subtitles. Advanced options, such as selecting a demuxer or video & audio codecs. Playlist. Allows you to enqueue several files to be played one after each other. Autorepeat and shuffle supported too. Preferences dialog. You can easily configure every option of SMPlayer by using a nice preferences dialog. Possibility to search automatically for subtitles in opensubtitles.org. Translations: currently SMPlayer is translated into more than 20 languages, including Spanish, German, French, Italian, Russian, Chinese, Japanese.... It's multiplatform. Binaries available for Windows and Linux. SMPlayer is under the GPL license. SMPlayer 25.6.0 changelog: Fix play/pause button. Some fixes to stop the screensaver on Linux. Fixed some issues related to disc playback. Various bug fixes and stability improvements. Download: SMPlayer 25.6.0 (64-bit) | Portable | ~40.0 MB (Open Source) Download: SMPlayer 25.6.0 (32-bit) | Portable Links: SMPlayer Website | Mac OS | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Mozilla never had the funding resources to promote their stuff the way Microsoft and Google do. As simple as 1-2-3.
    • ...Microsoft says that Edge is better for your Windows PC than Google's Chrome, as it is a "Microsoft product" that "integrates closely with Microsoft Windows," which helps with "performance benefits."... Yeah, right! Microsoft is still trying hard to convince everyone about everything it makes...
    • This is the curse of Linux on the desktop, the development and maintenance manpower is spread out across countless distributions. The same thing has to be integrated many times.
  • Recent Achievements

    • Week One Done
      Al_ earned a badge
      Week One Done
    • Week One Done
      MadMung0 earned a badge
      Week One Done
    • Reacting Well
      BlakeBringer earned a badge
      Reacting Well
    • Reacting Well
      Lazy_Placeholder earned a badge
      Reacting Well
    • Dedicated
      Epaminombas earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      474
    2. 2
      +FloatingFatMan
      273
    3. 3
      ATLien_0
      242
    4. 4
      snowy owl
      211
    5. 5
      Edouard
      182
  • Tell a friend

    Love Neowin? Tell a friend!