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.by NateC at 2013-02-21 10:45:28
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?
TIA.
Nate
In case this helps someone else. I found the solution.by Takuu at 2013-02-25 06:37:34
$db=get-mailboxdatabase -server <servername>
foreach ($ObjItem in $db)
{
$edbfp=$ObjItem.edbfilepath
$edbfp
}
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
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.