1.1 Install Required Windows Server Roles:
Before setting up MDT, you need to install the following roles on your Windows Server 2022:
DHCP (Dynamic Host Configuration Protocol)
DNS (Domain Name System)
ADDS (Active Directory Domain Services)
WDS (Windows Deployment Services)
1.2 Install Windows ADK Components:
Windows Assessment and Deployment Kit (ADK) for Windows 10:
Download and install the Windows ADK for Windows 10.
During installation, select the following components:
Deployment Tools
User State Migration Tool (USMT)
Windows PE Add-ons for Windows ADK:
Download and install the Windows PE add-ons for Windows ADK.
This will add the Windows Preinstallation Environment (WinPE) tools.
1.3 Install Microsoft Deployment Toolkit (MDT):
Download and install the latest version of the Microsoft Deployment Toolkit.
2.1 Open Deployment Workbench:
Open the Deployment Workbench from the Start menu.
2.2 Create a New Deployment Share:
Right-click on Deployment Shares and select New Deployment Share.
Follow the wizard to create the deployment share:
Path: Choose a location for your deployment share (e.g., C:\DeploymentShare).
Share Name: This should match the deployment share name (e.g., DeploymentShare$).
Descriptive Name: This can be anything that describes the deployment share.
Options: Select the appropriate options based on your environment (e.g., ask for a product key, capture an image, etc.).
2.3 Import Operating Systems:
In the Deployment Workbench, expand your newly created deployment share.
Right-click on Operating Systems and select Import Operating System.
Select the source of the OS files (e.g., full set of source files, custom image file, etc.).
Provide the path to the folder containing the OS files.
Follow the wizard to import the operating system.
2.4 Import Applications:
Right-click on Applications and select New Application.
Choose whether you want to install a single application or a suite.
Provide the necessary details:
Application Name
Source Directory: Create a folder for each application (e.g., C:\Applications\Chrome) and place the .exe or .msi file inside.
Configure the command line for installation:
For MSI: msiexec.exe /i application.msi /quiet
For EXE: application.exe /quiet
Complete the wizard to import the application.
2.5 Create a Task Sequence:
Right-click on Task Sequences and select New Task Sequence.
Provide a unique ID, name, and description for the task sequence.
Select a template (e.g., Standard Client Task Sequence).
Choose the operating system to deploy.
Specify the Product Key and the Administrator Password if required.
Configure the task sequence to include applications, drivers, and other settings.
3.1 Edit Rules and Bootstrap.ini:
Right-click on the deployment share and select Properties.
Go to the Rules tab and modify the rules as needed. You can find sample rules online or use AI tools to generate them.
Edit the Bootstrap.ini file to configure initial settings like the deployment share path and credentials.
3.2 Update Deployment Share:
Right-click on the deployment share and select Update Deployment Share.
This will generate boot images and update the deployment share.
3.3 Troubleshoot Windows PE Errors:
If you encounter errors related to Windows PE, ensure that the correct version of ADK and WinPE add-ons are installed. Reinstall if necessary.
4.1 Install and Configure WDS:
Open Server Manager, go to Add Roles and Features, and install Windows Deployment Services.
After installation, open the WDS Console.
Configure WDS to point to the MDT boot images:
Right-click on Boot Images and select Add Boot Image.
Browse to the boot image generated by MDT (Boot folder in the deployment share) and add it to WDS.
4.2 Deploy with WDS:
Ensure you have administrator privileges.
Boot a client machine using PXE (Preboot Execution Environment).
Select the MDT boot image from the WDS server.
Follow the on-screen instructions to deploy the image.
Error Handling: If you encounter errors during the installation, you may need to copy a script from GitHub to the DeploymentShare\Scripts folder. Use a task sequence to execute the script using cscript.exe "%SCRIPTROOT%\[script name]".
UEFI Mode: Ensure that client machines are set to boot in UEFI mode to avoid common deployment errors.
Quiet Installation: Use the /quiet flag with msiexec.exe for silent installations without user interaction.
After configuring everything, update the deployment share one last time.
Boot client machines, and they should start the deployment process based on the task sequences you configured.
This guide should help you set up and run MDT on Windows Server 2022 with greater clarity and detail. Let me know if you need any further assistance!