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

    • Lol, who still expects privacy in a facecrook-owned product these days? Let alone one that's 100% cloud hosted and doesn't function offline...
    • I stand by my "reading comprehension" statement. Every single point you bring up here I have already replied to in detail in. I am not going to spend time repeating myself to someone who isn't reading what I say. I am happy to have a conversation if you want to respond to anything I have said. I will happily admit when I am wrong if it comes to that. If you are just going to keep repeating your original claims and I have already responded to them, then it sounds like neither of us have any more to add to the conversation.
    • LG's UltraGear 32GX870A-B OLED gaming monitor hits a new low price by Paul Hill Are you in the US and looking for a top-of-the-line gaming monitor? Then be sure to check out the LG UltraGear OLED gaming monitor; it’s now discounted by 14% from its $1,400 list price, down to $1,210. This means you’ll be saving $190 if you decide to buy it now at its lowest price so far. Check out the buying link at the end of the article. If this monitor is still too high in price, there is also the 27-inch model available with a 20% discount bringing the price down to $796.99. In this piece, I will be focusing on the larger model, so be sure to double check the details of the 27-inch model separately for differences. If you were thinking about buying this as a Father’s Day gift, it is not going to arrive in time with standard delivery; however, you can get a Prime member trial to get it in time. 4K 240Hz or FHD 480Hz? One of the big features with the LG UltraGear OLED gaming monitor is the VESA-certified Dual Mode. It lets you select 4K Ultra-HD at 240Hz for graphically rich games where you want to see all the details or Full HD (1080p) at 480Hz for fast-paced titles. If you’re in a single-player game and want to take in all the details, the first option will be best. If you’re playing an intense multiplayer shooter, then the second option will be better to reduce lag further. Speaking of lag, this monitor supports an impressive 0.03ms GtG response time and has AMD FreeSync Premium Pro and is also Nvidia G-Sync compatible. This should ensure the monitor works well with both Nvidia and AMD graphics cards. OLED visuals and gaming experience Other notable features of this LG gaming monitor are its VESA DisplayHDR True Black 400 certification, 275 nits typical and 1,300 nits peak brightness. With all this, the monitor can render deep blacks, vivid colors, and bright highlights, delivering a superior HDR viewing experience that is especially beneficial for gaming and cinematic content in low-light environments. It features an impressive 1.5M:1 contrast ratio, an anti-glare, low reflection OLED screen, has built-in speakers and DTS Headphone:X support via 4-pole headphone jack, and it has an ergonomic stand with height, tilt, swivel, and pivot adjustments. While the “bass-driven” built-in speakers are nice for a basic setup, serious gamers, who this monitor is aimed at, will likely have a more comprehensive sound setup in place anyway that outperforms what this monitor provides. In terms of connectivity, the LG UltraGear OLED has two HDMI 2.1 ports and USB Type-C (65W power delivery). The DP 2.1 ports deliver ultra-fast data speeds for high refresh rate gameplay, helping to reduce lag and get the edge in competitive games. Finally, there is another feature called Switch App that turns your screen into a multitasking hub for work, gaming, and streaming. It lets you create up to 6 sections, customize the layouts, or launch video calls with one hotkey. This allows you to easily switch between your PC and the in-built webOS streaming platform using shortcuts. Is the LG 32GX870A-B worth it? The LG UltraGear OLED definitely offers standout features that help to justify the price, namely the up to 480Hz refresh rate. Other features like VESA DisplayHDR True Black 400 certification will also make the games you play look more accurate color-wise and if you don’t already have speakers, the monitor provides a “bass-driven” speaker setup for at least decent baseline audio. If you are a serious gamer, this monitor deserves consideration given the discount, it’s also at its lowest-ever price, so you’re not paying over the odds. If you still want a good monitor, but don’t want to pay as much, check out the 27-inch model. LG UltraGear OLED 32-inch: $1,209.14 (Amazon US) / MSRP $1,399.99 LG UltraGear OLED 27-inch: $796.99 (Amazon US) / MSRP $999.99 This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • The concept of ghost writers has existed for centuries; they don't get disclosed. I'm not sure this is different. In both cases the true author has agreed to do the work without being publicly credited. Don't get me wrong, I find the entire thing disgusting. Perhaps we agree but have slightly different standards for what the word "shady" means.
    • Nvidia GeForce NOW gains support for Dune: Awakening, The Alters, and more by Pulasthi Ariyasinghe Nvidia's GeForce NOW cloud gaming service brings support for a new selection of games every Thursday, and the latest weekly drop has just revealed itself. The latest games supported by the service include hits like Dune: Awakening, highly anticipated indies like The Alters and Kingdom Two Crows, and much more. Aside from the new games, Nvidia has just kicked off a brand-new sale for its 24-hour pass program. Available only for its Performance tier of GeForce NOW, this latest 1-day membership pass discount offers 1440p resolution streams with features like ray tracing and DLSS for 40% off. Don't forget that the GeForce NOW 40% off sale for the six-month subscription is still active too, with Nvidia cutting the price of the Performance membership until July. Here are the games announced for the program this week: Frosthaven Demo (New release on Steam, June 9) Dune: Awakening (New release on Steam, June 10) MindsEye (New release on Steam, June 10) Kingdom Two Crowns (New release on Xbox, available on PC Game Pass, June 11) The Alters (New release on Steam and Xbox, available on PC Game Pass, June 13) Lost in Random: The Eternal Die (New release on Steam and Xbox, June 13, available on PC Game Pass, June 17) Firefighting Simulator – The Squad (Xbox, available on PC Game Pass) JDM: Japanese Drift Master (Steam) Hellslave (Steam) Last week, Nvidia also revealed some highlights from what's coming throughout June. This includes FBC: Firebreak, the Borderlands trilogy, Rematch, and much more. The company has a tendency to add many more games to its cloud gaming service outside of these early announcements, so check back as weeks go by to see what's new. As always though, keep in mind that unlike subscription services like Game Pass, a copy of a game must be owned by the GeForce NOW member (or at least have a license via PC Game Pass) to start playing via Nvidia's cloud servers.
  • Recent Achievements

    • Week One Done
      fashionuae earned a badge
      Week One Done
    • One Month Later
      fashionuae earned a badge
      One Month Later
    • Week One Done
      elsafaacompany earned a badge
      Week One Done
    • Week One Done
      Yianis earned a badge
      Week One Done
    • Veteran
      Travesty went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      ATLien_0
      262
    3. 3
      +FloatingFatMan
      191
    4. 4
      +Edouard
      175
    5. 5
      snowy owl
      126
  • Tell a friend

    Love Neowin? Tell a friend!