Forum Discussion
Mikeyhelpmeplease
Jun 11, 2024Copper Contributor
Cannot get "$_.hiddenfromaddresslistsenabled -eq $true" to work with other parameters.
Hi Cannot get this command to work. Tried different variations and commands. Get-Mailbox | Where-Object {$_.IsLicensed -eq $true -and $_.BlockCredential -eq $false -and $_.hiddenfromaddresslistse...
Mikeyhelpmeplease
Jun 11, 2024Copper Contributor
Hi Vasil, my apologies, I'm not a PowerShell expert. What I am trying to find is a command that will give me active or exchange licensed accounts that have the "Show in address book" option off.
I have got this working by itself:
Get-Mailbox -ResultSize Unlimited | Where-Object {$_.hiddenfromaddresslistsenabled -eq $True}
I'm hoping there is a way to get those same results (Hidden from address book) but for active or exchange licensed (E1) or alternatively non blocked accounts.
I have got this working by itself:
Get-Mailbox -ResultSize Unlimited | Where-Object {$_.hiddenfromaddresslistsenabled -eq $True}
I'm hoping there is a way to get those same results (Hidden from address book) but for active or exchange licensed (E1) or alternatively non blocked accounts.
VasilMichev
Jun 11, 2024MVP
As mentioned above, you can get similar data via the SKUAssigned property:
Get-Mailbox -Filter {hiddenfromaddresslistsenabled -eq $true} | ? {$_.SKuAssigned}
Get-Mailbox -Filter {hiddenfromaddresslistsenabled -eq $true} | ? {$_.SKuAssigned}