0

I recently posted a question about a problem I was having with my powershell script here. The helpful people here guided me to the solution which was using Redemption library.

After looking in to what Redemption is, and what it can do, I decided to give it a go and install the files. Now I'm facing the problem where I can't quite ComObjects of Redemption.

My Code:

$routlook = New-Object -COM Redemption.RDOSession
$routlook.Logon

$junk = $routlook.GetDefaultFolder($OlFolderJunk)
$MI = $box.items

$MI|select  SenderName, SenderEmailAddress, To, Subject, Body

The goal is to just simply show the fields listed above in a table. I want to see the sender's name, the sender's e-mail address, the recipient, the subject and the content (or body)

The Return Value (The Error)

enter image description here

I'm assuming this has something to do with the the missing assembly reference? If so please explain how I add this library to the assembly, cause I'm quite new to Powershell scripting.

Thank you.

2
  • 1
    did you tried to run it on powershell x32 bit? Commented Feb 23, 2016 at 10:01
  • Wow now I'm pretty ashamed. I didn't think about that. It works, thanks Commented Feb 23, 2016 at 10:11

2 Answers 2

1

Try to load it in PowerShell x32 Bit, or get the x64 Bit dll version

Sign up to request clarification or add additional context in comments.

1 Comment

I have the x64 bit dll version but it's still only working on 32bit version. Shouldn't it be working on both now then?
1

This error is an indication that bitness of your code is different from the bitness of the MAPI system (Outlook). See http://www.dimastr.com/redemption/faq.htm#ErrorCreatingRedemptionObject

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.