A positional parameter cannot be found that accepts argument

Rising Flight 4,596 Reputation points
2024-11-02T05:09:02.92+00:00

Hi All

i am using the below syntax in exchange online, i am getting error.

Select-Object : A positional parameter cannot be found that accepts argument 'System.Object[]'.

At line:1 char:79

  • | Select DisplayName,title,userprincipalname,Department,Man ...
Get-DistributionGroupMember -Resultsize Unlimited DL1@contoso.com | Select DisplayName,title,userprincipalname,Department,Manager,EmployeeID,Office,country,extension attribute01,PrimarySMTPAddress|  Export-csv -path C:\temp\output.csv -NoTypeInformation

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,331 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,565 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,661 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,130 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.