CmdID / PowerShell / Cmdlets / Get
Get-MgChatRetainedMessage
Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 16 parameters Its page in the reference
Parameters
-BreakWait for .NET debugger to attach-CountInclude count of items-ExpandProperty, -ExpandExpand related entities-FilterFilter items by property values-HeadersOptional headers that will be added to the request.-HttpPipelineAppendSendAsync Pipeline Steps to be appended to the front of the pipeline-HttpPipelinePrependSendAsync Pipeline Steps to be prepended to the front of the pipeline-Property, -SelectSelect properties to be returned-ProxyThe URI for the proxy server to use-ProxyCredentialCredentials for a proxy server to use for the remote call-ProxyUseDefaultCredentialsUse the default credentials for the proxy-ResponseHeadersVariable, -RHVOptional Response Headers Variable.-SearchSearch items by search phrases-SkipSkip the first n items-Sort, -OrderByOrder items by property values-Top, -LimitShow only the first n items