Logout

Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > Powershell example

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon API  /

Powershell example

Hi,

We are running mdeamon 18.5.4, and need to start utilizing the API of the mail server.
Its simple tasks like:
Get all users
Reset password for an user
Create new user

Ive been searching several places now, i keep getting told, that there is some Javascript / Powershell examples on the XMLAPI home page - but i have no clue, where to find it.
Keith Personett, "Gettting user detailed info by URL query string via MDaemon XML API." #3, 3 Apr 2021 8:55 am
Could someone please provide an example / more details where to find these files?

  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Arron Caruth - Sep 8, 2021 7:49 am (#1 Total: 1)  

Guest User  

Photo of Author
Posts: 1
All of the samples for the XML API can be found in the \MDaemon\Docs\API\XML API\Samples\ directory.  I checked the 18.5.4 installer and it doesn't look like we were including PowerShell samples yet, the latest version does include PowerShell samples.

You can view the XML-API help by opening a browser on the MDaemon server and going to http://localhost:1000/mdmgmtws, where 1000 is the port your MDaemon Remote Administration server is configured to listen on.

I have attached a sample PS script that creates a new user account. It should help to get you headed in the right direction

To get the sample powershell file you'll have to rename the file from .zi_ to .zip, then extract the PS1 file.

--
Arron Caruth
Vice President of Product Development
o: 817-601-3222    e: Arron.Caruth@mdaemon.com

MDaemon Technologies
Simple Secure Email

Visit us on www.mdaemon.com | Facebook | LinkedIn | YouTube
Sent using the MDaemon Email Server

On Wed, 8 Sep 2021 01:05:06 -0500, "lists-md-api@mdaemon.com (Kristian Leth)" <lists-md-api@mdaemon.com> wrote:
Hi,

We are running mdeamon 18.5.4, and need to start utilizing the API of the mail server.
Its simple tasks like:
Get all users
Reset password for an user
Create new user

Ive been searching several places now, i keep getting told, that there is some Javascript / Powershell examples on the XMLAPI home page - but i have no clue, where to find it.
Keith Personett, "Gettting user detailed info by URL query string via MDaemon XML API." #3, 3 Apr 2021 8:55 am
Could someone please provide an example / more details where to find these files?


View/reply at Powershell example
--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------

Attachments:

CreateUserSample.zi_ (1 KB) (55 Downloads)




  All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



 Content:

Read New | Search

 Guest:

Email to Admin



You are visiting as a Guest user.