



Run the following commands from an elevated Windows PowerShell prompt: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force Next, run the Set-OuPermissions script to apply permissions to the MDT_JD service account, enabling it to manage computer accounts in the Contoso / Computers OU. This script configures permissions to allow the MDT_JD account to manage computer accounts in the contoso > Computers organizational unit.Ĭreate the MDT_JD service account by running the following command from an elevated Windows PowerShell prompt: New-ADUser -Name MDT_JD -UserPrincipalName -path "OU=Service Accounts,OU=Accounts,OU=Contoso,DC=CONTOSO,DC=COM" -Description "MDT join domain account" -AccountPassword (ConvertTo-SecureString -AsPlainText -Force) -ChangePasswordAtLogon $false -PasswordNeverExpires $true -Enabled $true In order for MDT to join machines into the domain you need to create an account and configure permissions in Active Directory.ĭownload the Set-OUPermissions.ps1 script and copy it to the C:\Setup\Scripts directory on DC01. These steps assume you've The account is used for Windows Preinstallation Environment (Windows PE) to connect to MDT01. These steps will show you how to configure an Active Directory account with the permissions required to deploy a Windows 10 machine to the domain using MDT.

Step 1: Configure Active Directory permissions HV01 used to test deployment of PC0005 in a virtual environment.įor details about the setup for the procedures in this article, please see Prepare for deployment with MDT. MDT01 and PC0005 are members of the domain for the fictitious Contoso Corporation.
