
Explanation:
To complete the task of joining a newly-provisioned Windows 2019 Server to an Active Directory domain as part of the package install phase, follow these steps in the correct order:
* Step 1: Add a task to the Package Install section.
* Step 2: Choose Execute as the task type.
* Step 3: Choose Powershell as the script type.
* Step 4: Select the appropriate Credential.
* Step 5: Write/insert the Powershell script contents into the script window.
Add a task to the Package Install section: This sets up the task within the phase where packages and scripts are to be executed.
Choose Execute as the task type: This specifies that the task will run a script or command.
Choose Powershell as the script type: Since joining a Windows Server to a domain typically involves running a PowerShell script, this is the appropriate script type.
Select the appropriate Credential: Use the credentials with the necessary permissions to join the server to the Active Directory domain.
Write/insert the Powershell script contents into the script window: Enter the PowerShell script that performs the domain join operation.
Add-Computer -DomainName "yourdomain.com" -Credential (Get-Credential) -Restart References:
* Nutanix Calm documentation on Script Execution in Blueprints.
* Nutanix Best Practices for Joining a Domain.