Link to home
Start Free TrialLog in
Avatar of Dan
DanFlag for United States of America

asked on

get-receiveconnector is not recognized as the name of a cmdlet

My exchange shell was working fine a few months ago last time I used it.  Now I tried to run a simple command to check my messageratelimit and I'm getting this error.  Can anyone point me in the right direction.  I quick google did not provide anything, so just reaching out to the experts.

User generated image
Avatar of CompProbSolv
CompProbSolv
Flag of United States of America image

What result do you get from get-excommands?
Avatar of Dan

ASKER

Same error:

User generated image
SOLUTION
Avatar of viktor grant
viktor grant
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What happens if you run
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;

Open in new window

Avatar of Dan

ASKER

Im running exchange 2013
Avatar of Dan

ASKER

when I do get-excommand I get a long list of commands
Avatar of Dan

ASKER

when I executed : Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;

it just took it, no errors
Avatar of Dan

ASKER

Thanks Shaun, that did the trick, now I was able to run my get-receiveconnector command and it worked.

One other question, how do I change the 5 to unlimited?

Under messageratelimit, it says 5 for some of the receive connectors, and unlimited for the rest.  I ant to make them all unlimited.
Avatar of Dan

ASKER

I tried setting the recieve connector, but still getting the same error as no recognized, any ideas why?

User generated image
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dan

ASKER

so do I have to run that every single time?

It's not powershell, it's the exchange management shell
Exchange management shell is PowerShell. The only difference is that snapin is added automatically
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dan

ASKER

thanks everyone, got it to work.
the command was set-receiveconnector "......." -messageratelimit 10000

I had copied the command from another post on EE and they had misspelled it.
Avatar of Dan

ASKER

Thanks everyone for you help.!!!