windows.configure_domain
This MC contains a FIREWHEEL plugin designed to configure and schedule the joining of a domain and the creation of a domain controller. Additionally, the following VM resources are provided with this model component:
join_windows_domain.ps1 - Joins a Windows machine to a specified domain.
install_domain_controller.ps1 - Installs and configures a domain controller on a Windows Server machine.
change_password.ps1 - Changes the password for a specified user.
add_activedirectory_users.ps1 - Adds or updates Active Directory users.
- Attribute Depends:
graph
- Attribute Provides:
windows_domain
- Model Component Dependencies:
Plugin
- class windows.configure_domain_plugin.ConfigureDomain(graph, log)[source]
Bases:
AbstractPluginThis plugin configures and schedules joining a domain and creating a domain controller.
- __annotate_func__ = None
- __annotations_cache__ = {}
- __firstlineno__ = 7
- __static_attributes__ = ()
- add_users(v)[source]
Adds users to the domain controller.
- Parameters:
v (Vertex) – The vertex describing the domain controller.
- fix_hostname(host)[source]
Ensures the hostname is set before joining the domain regardless of whether anyone else has tried to set the hostname.
- Parameters:
host (Vertex) – The vertex describing the host.
- get_dns_address()[source]
Gets the IP address of the DNS Server in the experiment.
- Returns:
The IP address of the DNS server, or None if not found.
- Return type:
- join_rel_time = -50
- run()[source]
Executes the domain configuration process.
- The logic is as follows:
Find all the domain controllers in the graph.
Schedule the DC and then find its experiment IP address.
Find all vertices (hosts) that belong to that domain and schedule them.
- set_dc_schedule(v)[source]
Adds to the domain controller’s schedule.
Warning
This method assumes that the Administrator password is originally set to:
changeme&1and then changed toChangeThisPassword#1. Users should update this as needed.- Parameters:
v (Vertex) – The vertex describing the domain controller.