Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

A parameter cannot be found that matches parameter name 'Mailbox'. #36

Open
JamesHeathcote opened this issue Aug 8, 2018 · 4 comments

Comments

@JamesHeathcote
Copy link

JamesHeathcote commented Aug 8, 2018

DumpDelegatesandForwardingRules.ps1

Running as a GA with latest powershell module:

A parameter cannot be found that matches parameter name 'Mailbox'.
+ CategoryInfo : InvalidArgument: (:) [Get-InboxRule], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Get-InboxRule
+ PSComputerName : outlook.office365.com

@mcvic1rj
Copy link
Contributor

mcvic1rj commented Aug 8, 2018

Can you run the following and paste the output?
$PSVersionTable

@stsulliv
Copy link

Same problem here. $PSVersionTable output below.
Name Value


PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.3.9600.18968
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2

@stsulliv
Copy link

Found my problem. Check your connection to Exchange (including the import session part).

Troubleshooting:
-[SUCCESS] I ran the 'Get-InboxRule' command locally on exchange using Exchange Management Shell
-[SUCCESS] I ran the 'Get-InboxRule' command remotely on a server with Exchange Admin Tools installed using Exchange Management Shell.
*note the Exchange PowerShell launches with an 'Auto' connect option (see windows shortcut properties)

So the issue was with the Exchange connection. After digging deeper in the script, I had an error importing the Exchange PSSession. Once resolved, the command executed successfully.

@PsychoData
Copy link

I will say some of the commands in these scripts have to be tweaked to run with On-prem exchange, though a lot stays the same
Combined with Issue #37 (Troubleshooting suggestions there) I'm guessing this is probably just an issue importing the session.

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

No branches or pull requests

3 participants