MailSniper icon indicating copy to clipboard operation
MailSniper copied to clipboard

Problems running Invoke-SelfSearch and Invoke-GlobalMailSearch

Open zimzima opened this issue 6 years ago • 2 comments

Hi,

I came accross your tool a few days ago and it looks great. I'm having some trouble getting it to work though. I'm currently testing with my AD user account, to ensure that it exists and works. When I import the module and run the Invoke-SelfSearch command, I get this output:

PS C:\Users*\Desktop\powershell\MailSniper> Invoke-SelfSearch -Mailbox [email protected] [] Trying Exchange version Exchange2010 [] Autodiscovering email server for [email protected] PS C:\Users*\Desktop\powershell\MailSniper>

I tried setting the Exchange server explicitly, tried all the versions, etc. I don't get any additionnal output to point me in the right direction.

Do you have any ideas? Thanks!

zimzima avatar Jan 31 '19 15:01 zimzima

I have continued testing and I find that whenever I use wrong credentials I get the appropriate errors. I have also tried remotely over the internet, and once again I get errors when using wrong credentials, but when everything is supposed to work correctly I get the output mentionned previously, the module stops after Autodiscovering when the ExchHostname is not explicitely set, or after "Using EWS url ..." if it is set.

zimzima avatar Feb 01 '19 13:02 zimzima

Had a similar issue after looking at the code I noticed -OtherUserMailbox uses a different code path.

This seems to work: Invoke-SelfSearch -OtherUserMailbox [email protected] -ExchHost

oripka avatar Oct 15 '21 11:10 oripka