Skip to content

Unable to cast object of type 'Message' to type 'Attachment' #4

@dzgreen

Description

@dzgreen

This very helpful module, seems not to be able to perform Get-MsgAttachment when the attachment is also an msg file.

Error:
Get-MsgAttachment: Unable to cast object of type 'Message' to type 'Attachment'.

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.1
PSEdition                      Core
GitCommitId                    7.3.1
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

The same error on Windows Powershell 5.1

Any help would be greatly appreciated.

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