Hi,
i would like to select a group of data by comparing several critiria as below.
1. CustomAttribute5 less equal today date
2. CustomAttribute8 not NULL
3. CustomAttribute5 not NULL
Is below script correct?
$todayDate = Get-Date -format dd-MM-yyyy
$allUser = Get-Mailbox -resultsize unlimited | where {$_.CustomAttribute5.toString("dd-MM-yyyy") -le $todayDate -and !$_CustomAttribute8 -and !$_.CustomAttribute5}