Skip to content

Recipients parameter requires DisplayName property #5

@jmartinmsft

Description

@jmartinmsft

When setting a variable for the recipients parameter the command failed with the error:
The property "DisplayName" cannot be found on this object. Verify that the property exists.

Here is what was attempted:
$m = Get-EXOMailbox -ResultSize unlimited | Select Identity
Start-RobustCloudCommand -Recipients $m -ScriptBlock { Get-User -Identity $input.Identity ...

To fix, changed the variable to:
$m = Get-EXOMailbox -ResultSize unlimited | Select Identity,DisplayName

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions