Solved

check Disk Free space:

Posted on 2013-11-04
5
667 Views
Last Modified: 2013-11-08
check Disk Free space:

We have 2 Exchange 2010 Mailbox nodes member of the DAG with 8 mailboxes each active/passive
I need a script that will give me the space left on the drives


for instance:
MDB1 has Edbfile in Y: drive and Logs in F: drive.
MDB2 has Edbfile in G: drive and Logs in H: drive.
MDB3 has Edbfile in K: drive and Logs in M: drive.



Thanks
0
Comment
Question by:jskfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 14

Assisted Solution

by:ThomasMcA2
ThomasMcA2 earned 500 total points
ID: 39622966
Try this command:

fsutil volume diskfree c:

Open in new window

0
 

Author Comment

by:jskfan
ID: 39623004
fsutil volume diskfree c:

this will work for local drive only.. what about remote drives ?
0
 
LVL 14

Accepted Solution

by:
ThomasMcA2 earned 500 total points
ID: 39623037
Sorry about that, I never tried to use that tool on a remote drive.

Here's a PowerShell version of the df command.
0
 

Author Comment

by:jskfan
ID: 39623151
I get an error:

The term 'Get-diskfree' is not recognized as the name of a cmdlet, function, script file, or operable program. Check th
e spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:13
+ Get-diskfree <<<<
    + CategoryInfo          : ObjectNotFound: (Get-diskfree:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
0
 

Author Closing Comment

by:jskfan
ID: 39632653
thanks
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question