Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Exchange 2007 Get-mailbox

$
0
0

Hi,

Get-mailbox have a parameter "UseDatabaseQuotaDefaults" True if it's use the default values, false if not.

I need to check by IF statement if it's True or False.

code:

$UseDatabaseQuotaDefaults=Get-Mailbox $UserName| Select-Object UseDatabaseQuotaDefaults

if ($UseDatabaseQuotaDefaults -eq $True)

 { 

     do x,y ,z

}

It's not working, because the var $UseDatabaseQuotaDefaults gets  the value: @{UseDatabaseQuotaDefaults=True}

how can I get in one command only the value True or False ?

 

Thanks

Lior

 

 

 


Viewing all articles
Browse latest Browse all 10624

Trending Articles