Solved

check Disk Free space:

Posted on 2013-11-04
5
627 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
Read this checklist to learn more about the 15 things you should never include in an email signature.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
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 …

803 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