can not use powershell to execute Mailenable commands

Discussion regarding the Standard version.
Post Reply
hunguyen
Posts: 2
Joined: Wed Mar 18, 2020 3:05 pm

can not use powershell to execute Mailenable commands

Post by hunguyen » Wed Mar 18, 2020 3:19 pm

Hi,

I am not able to execute Add-PSSnapin MailEnable.Provision.Command. It returned an invalideArgument error. See below.
I am using the Mailenable standard edition version 10.23

Get-PSSnapin -Registered command return nothing.

I can run the mailEnable management console. The add/remove snap-ins show "MailEnable Management" is listed in selected snap-ins under Console Root

What can I do to get around this problem?

Thanks,

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\admin> Add-PSSnapin MailEnable.Provision.Command
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.
At line:1 char:1
+ Add-PSSnapin MailEnable.Provision.Command
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (MailEnable.Provision.Command:String) [Add-PSSnapin], PSArgumentExcepti
on
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand



PS C:\Users\admin> Get-PSSnapin -Registered

hunguyen
Posts: 2
Joined: Wed Mar 18, 2020 3:05 pm

Re: can not use powershell to execute Mailenable commands

Post by hunguyen » Mon Mar 23, 2020 6:15 pm

Hi,

Below is MailEnable PowerShell Reference page.
It mentioned: :PowerShell support is available for all editions of MailEnable since version 9.5"

Is this feature available in Standard Edition version 10.23 ?

I tried what it said and it does not work.

Thanks,

==============

MailEnable PowerShell Reference
10
th April 2019
Overview
MailEnable's PowerShell interface allows system administrators and developers to manage MailEnable via
PowerShell.
Administrators can perform typical actions via scripts and can develop and extend these to these commands via
scripting. PowerShell significantly improves automation and integrated management of MailEnable.
PowerShell support is available for all editions of MailEnable since version 9.5.
Launching PowerShell
You can launch PowerShell either by:
1. Selecting Windows PowerShell from the Start screen, or:
2. Selecting Windows PowerShell from the taskbar.
Executing MailEnable PowerShell Commands
Once PowerShell opens, use the following command to add the MailEnable PowerShell snap-in to the current
PowerShell session:
Add-PSSnapin MailEnable.Provision.Command

You can then issue specific commands depending on the area of MailEnable you wish to configure. You can add this
to your PowerShell profile so this line is not needed each time.
...

Post Reply