Link to home
Start Free TrialLog in
Avatar of markmagnus
markmagnus

asked on

Powershell for exchange select edbfilepath exchange 2013

I run the following powershell to get information about the exchange databases and the last piece about the edbfilepath shows the header but not the actual path.  All the other items for the database work.  No errors are generated.

get-mailboxdatabase -server generic  -status | ft identity,@{label="WS (MB)";expression={$_.AvailableNewMailboxSpace.ToMB()}},@{label="Size (GB)";expression={$_.databasesize.ToGB()}},@{label="Path";expression={select edbfilepath}}

If I run get-mailboxdatabase -status | select edbfilepath it works correctly.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of markmagnus
markmagnus

ASKER

I looked in a lot of places thinking someone else might want have wanted to know where each database was.  Although I could get the data from a powershell command by itself it is nice to be able to include this in a bigger script.  Especially with 45 databases.