EDBFIlePath.Drivename question

by NateC at 2013-02-21 08:19:16

Alright here is my dilemma. In one of my scripts for Exchange Server certification I pulled out the edbfilepath.drivename property, but can’t figure out what I did to find out that the edbfilepath had the ‘subproperty’ of drivename. I thought it might have been Get-ChildItem or Get-Member, but they led nowhere.

I have tried anything that even remotely, or wrongly, might lead me down the path to finding the answer (MSDN, Technet, Scripting Guy) and have scrounged through Karl M’s script which has a reference to this item. So far nothing that points me to how to find the subproperties of an attribute like edbfilepath or logfilepath on a mailbox database.

Can anyone point me in the right direction for this?


by NateC at 2013-02-21 10:45:28
In case this helps someone else. I found the solution.

$db=get-mailboxdatabase -server <servername>

foreach ($ObjItem in $db)

This will return the following for each database:

IsPathInRootDirectory: <True or False>
PathName : File path for DB in question
IsLocalFull : <True or False>
IsUnc : <True or False>
DriveName : <Drive Letter - should correspond to the one found in the PathName attribute above>
ServerName : Maybe be blank
by Takuu at 2013-02-25 06:37:34
Thanks for posting that solution NateC!
I just used the edbfilepath property of the mailbox database object a few weeks ago in coordination with eseutil to check for clean shutdowns.