Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipients parameter requires DisplayName property #5

Open
jmartinmsft opened this issue Jan 19, 2022 · 0 comments
Open

Recipients parameter requires DisplayName property #5

jmartinmsft opened this issue Jan 19, 2022 · 0 comments

Comments

@jmartinmsft
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant