windows.exchange_server

This model component provides functionality for managing an Exchange Server running on Windows Server 2012 R2. It includes methods for installing Exchange Server, adding mailboxes, and preparing the server for Exchange installation.

The following VM resources are provided with this model component:

  1. add_mailboxes.ps1 - Adds mailboxes for users on the Exchange Server.

  2. install_exchange_server.ps1 - Installs Microsoft Exchange Server on the VM.

  3. prep_exchange.ps1 - Prepares the Windows Server for Exchange installation by installing required features.

  4. run_add_mailboxes.ps1 - Executes the script to add mailboxes using PsExec.

  5. run_exchange_installation.ps1 - Executes the Exchange Server installation script using PsExec.

Model Component Dependencies:

Available Objects

class windows.exchange_server.ExchangeServer(*args, **kwargs)[source]

Bases: object

The Model Component for the Exchange Server running on Windows Server 2012 R2.

__annotate_func__ = None
__annotations_cache__ = {}
__firstlineno__ = 6
__init__(*args, **kwargs)
__static_attributes__ = ('snapshot', 'vm')
add_mailboxes(users, username, password, domain=None)[source]

Adds mailboxes for users on the Exchange Server.

Parameters:
  • users (list) – A list of usernames or dictionaries containing user information.

  • username (str) – The username for autologon.

  • password (str) – The password for autologon.

  • domain (str, optional) – The domain name. Default is None.

install_exchange(start_time, username, password, domain_controller, org_name)[source]

Installs Microsoft Exchange Server on the VM.

Parameters:
  • start_time (int) – The time at which to start the installation process.

  • username (str) – The username for autologon.

  • password (str) – The password for autologon.

  • domain_controller (str) – The domain controller to use.

  • org_name (str) – The organization name for the Exchange Server.