Welcome to the Exchange Management Shell!
Full list of cmdlets: Get-Command
Only Exchange cmdlets: Get-ExCommand
Cmdlets that match a specific string: Help *<string>*
Get general help: Help
Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
Show quick reference guide: QuickRef
Exchange team blog: Get-ExBlog
Show full output for a command: <command> | Format-List
Tip of the day #42:
Need an easy way to add a new primary SMTP address to a group of mailboxes? The following command creates a new e-mail a
ddress policy that assigns the @contoso.com domain to the primary SMTP address of all mailboxes with Contoso in the comp
any field:
New-EmailAddressPolicy -Name Contoso -RecipientFilter {Company -Eq "Contoso"} -EnabledPrimarySMTPAddressTemplate "@cont
oso.com"
VERBOSE: Connecting to xxxx.yyyy.com
[bdcva.tmgva1.com] Connecting to remote server failed with the following error message : The WinRM client received an H
TTP server error status (500), but the remote service did not include any other information about the cause of the fail
ure. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
eption
+ FullyQualifiedErrorId : PSSessionOpenFailed
VERBOSE: Connecting to xxxx.yyyy.com
[bdcva.tmgva1.com] Connecting to remote server failed with the following error message : The WinRM client received an H
TTP server error status (500), but the remote service did not include any other information about the cause of the fail
ure. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
eption
+ FullyQualifiedErrorId : PSSessionOpenFailed
VERBOSE: Connecting to xxxxx.yyyycom
[bdcva.tmgva1.com] Connecting to remote server failed with the following error message : The WinRM client received an H
TTP server error status (500), but the remote service did not include any other information about the cause of the fail
ure. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportExc
eption
+ FullyQualifiedErrorId : PSSessionOpenFailed
Failed to connect to an Exchange server in the current site.
Enter the server FQDN where you want to connect
winrm quickconfig
This should give a nice message about success. If not please post the output here.
Also with the 500 error I would go into server manager and check to make sure that the Feature:
WinRM IIS Extension is installed. If it is try uninstalling and access cli if still fail then reinstall try again.
Finally within IIS on an exchange server check to make sure that the Powershell Application is listed under your website and that the user you are trying to access the shell with has the appropriate permissions to this directory.