check Disk Free space:

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
jskfanAsked:
Who is Participating?
 
ThomasMcA2Commented:
Sorry about that, I never tried to use that tool on a remote drive.

Here's a PowerShell version of the df command.
0
 
ThomasMcA2Commented:
Try this command:

fsutil volume diskfree c:

Open in new window

0
 
jskfanAuthor Commented:
fsutil volume diskfree c:

this will work for local drive only.. what about remote drives ?
0
 
jskfanAuthor Commented:
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
 
jskfanAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.