Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running Invoke-SelfSearch and Invoke-GlobalMailSearch #74

Open
zimzima opened this issue Jan 31, 2019 · 2 comments
Open

Problems running Invoke-SelfSearch and Invoke-GlobalMailSearch #74

zimzima opened this issue Jan 31, 2019 · 2 comments
Labels

Comments

@zimzima
Copy link

zimzima commented Jan 31, 2019

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 test@example.com
[] Trying Exchange version Exchange2010
[
] Autodiscovering email server for test@example.com
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
Copy link
Author

zimzima commented Feb 1, 2019

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.

@leebaird leebaird added the bug label Mar 4, 2021
@oripka
Copy link

oripka commented Oct 15, 2021

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

This seems to work: Invoke-SelfSearch -OtherUserMailbox username@domain.com -ExchHost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants