Solved

check Disk Free space:

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now