I need to see who are not empty on those fields first. I found the following two commands give different result:
Get-Mailbox -Filter {CustomAttribute1 -ne $null} | select Name, CustomAttribute1, CustomAttribue2
Get-Mailbox | ? CustomAttribute1 -ne $null | select Name, CustomAttribute1, CustomAttribue2
I need to see who are not empty on those fields first. I found the following two commands give different result:
Get-Mailbox -Filter {CustomAttribute1 -ne $null} | select Name, CustomAttribute1, CustomAttribue2
Get-Mailbox | ? CustomAttribute1 -ne $null | select Name, CustomAttribute1, CustomAttribue2
Aren't they supposed to give the same result?