RobustCloudCommand icon indicating copy to clipboard operation
RobustCloudCommand copied to clipboard

Recipients parameter requires DisplayName property

Open jmartinmsft opened this issue 3 years ago • 0 comments

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

jmartinmsft avatar Jan 19 '22 20:01 jmartinmsft