Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » PowerShell Deployment Extension for MDT: How to deploy Windows using PSD, Microsoft Deployment Toolkit, and Windows Deployment Services
  • BLOG LOGO
    How to create a static pod in Kubernetes AWS/Azure/OpenShift
  • Screenshot 2020 06 23 at 10.52.52
    How to uninstall Microsoft SQL Server on Windows Oracle/MSSQL/MySQL
  • BdeHdCfg
    Fix System Partition not available or large enough on Microsoft BitLocker Administration and Monitoring [Part 1] Windows Server
  • Enable Nexted Virtualization on VirtualBox
    ESXi VMB 411 Halting: Virtualbox Nested VT-X/AMD-V greyed out Virtualization
  • diag7
    How to run Windows Memory Diagnostics Tool on Windows Windows
  • On ubuntu mariadb
    How to install MariaDB on Ubuntu Linux
  • ntp server testen
    Enable or disable Linux System’s Clock Sync with NTP Server Linux
  • image 92
    Install Let’s Encrypt Wildcard SSL Certificate in cPanel using Certify The Web Configuration Management Tool

PowerShell Deployment Extension for MDT: How to deploy Windows using PSD, Microsoft Deployment Toolkit, and Windows Deployment Services

Posted on 02/03/202129/09/2023 Christian By Christian No Comments on PowerShell Deployment Extension for MDT: How to deploy Windows using PSD, Microsoft Deployment Toolkit, and Windows Deployment Services
PSD

PowerShell Deployment Extension for MDT (PSD) enables you to extend your MDT Lite Touch Installation capabilities beyond the traditional IT boundaries. The purpose of PowerShell Deployment for MDT is to create a new deployment solution that provides the same level of automation as MDT but built on a more modern framework “PowerShell”. Explore PowerShell Deployment Extension for MDT. See the following guides: WDS/DHCP scenarios: How to configure DHCP Server option 60, 66, and 67 for Windows Deployment Services, Uninstall WDS: How to remove Windows Deployment Services role via the GUI and PowerShell, What happens when WDS and DNS is installed on the same server: DNS issues with WDS, and how does WDS work: How to configure Windows Deployment Services on Windows Server 2019.

PowerShell is the tool of choice, so it makes sense to use that for Windows deployment too as "against the traditional VBscript, ActiveX and lots of other command-line tool used previously". PSD is not a "replacement" or "the new MDT." It is an add-on to the existing MDT and does not replace the Deployment Workbench. it's only provides new task sequences and scripts to use within the existing framework. Therefore, it is an extension, not a replacement!

Microsoft Deployment Toolkit (MDT)

Microsoft Deployment Toolkit (MDT) was previously referred to as “Business Desktop Deployment (BDD) Solution Accelerator”. MDT is a FREE tool that provides you with a framework to create custom images for deployment in your environment. These images can be for servers or client computers. The tool helps you put together all the necessary components (such as the operating system, applications, and drivers) into a standard image. Additionally, you can create task sequences to make sure your deployment is run in the proper order and correctly. Then MDT will put all the pieces together in a custom image that you can deploy in your infrastructure. For a detailed scenario on how MDT helps in accomplishing this task, please see the following guide “ADK, MDT, and WDS: How to deploy Windows using Microsoft Deployment Toolkit, and Windows Deployment Services“.

The major components and functionality are built on PowerShell alone but still leverage the MDT Workbench and layout. The goal is to support deployment shares by using PSD extensions as well as legacy MDT deployment shares. Supported deployment scenarios include deployment from the following content repositories.
– IIS over HTTP using WebClient (Native PS) or
– IIS over HTTP with BITS & BranchCache using 2Pint Software’s OSD Toolkit, and,
– UNC (\server\share)

Requirements for PowerShell Deployment Extension for MDT

To proceed with his tool, regardless of the scenario you are using, ensure you have the following prerequisites met.
– Download and then install Windows ADK 10, if not running previously.
– Downloads and then Installs MDT as well if not running previously.
– Download the PSD GitHub repository, and follow the installation guides in the PSD Documentation.

Follow the steps below to initiate PowerShell Deployment Extension for MDT.

Step 1- Download and then install Windows ADK 10, if not running previously

To install Windows ADK 10, please proceed to the following link . Note: When you wish to install a new ADK, an old ADK must be uninstalled before installing a new one (If this is not uninstalled, you will get an error). With this, you will lose some configuration as well.

PowerShell Deployment Extension for MDT-download-ADK

Double click on the downloaded adksetup.exe file and follow the link for further steps. You may be asked to accept the UAC. For more on UAC, please see this guide “User Account Control: How to turn UAC on or off in Windows“.

PowerShell Deployment Extension for MDT-run-the-setup

Now that you have completed the adksetup installation, you must have noticed that theWindows PE was not included. To do this, we will have to Download the Windows PE add-on for the MDT server. Please see this link for further steps

PowerShell Deployment Extension for MDT-WinPE-Add-on

Double click on the downloaded adkwinpresetup.exe as shown above and work through the process and select install as shown below. You may be asked to accept the UAC.

PowerShell Deployment Extension for MDT-WinPE

Step 2 – Downloads and then Installs MDT as well if not running previously

You will have to click on the hyperlink to download the Microsoft Deployment Toolkit (MDT). I will be installing MDT 64bits as shown below. Click on Next to continue the download.

PowerShell Deployment Extension for MDT-MDT-Download
Double click on the installer (downloaded MDT setup file) and Please see this link for further steps. After the installation is complete, you should be able to access the Deployment Work Workbench as shown below. 
Workbench
Workbench
PowerShell Deployment Extension for MDT-mdt-1
mdt 1
Step 3 - Install PSD for MDT: The PSD installation script is used to either create a new, or extend an existing MDT deployment share. It is also possible to use the Hydration script on a new server to setup a PSD lab environment. For the Hydration scenario 2 below. 

Scenario 1 – PSD Installation:

To do this, we will have to launch the PowerShell window as an administrator. Please refer to this official guide and download the Tool as shown below. You can do this in a professional way by installing GIT and cloning the repository. I will be showing you these steps in a new blog post.
– Click on Download ZIP as shown below.

PSD-1

Locate the downloaded Tool (ZIP file) as shown below and right click on it to extract it.

PSTZIP

Upon clicking on “Extract All”, the following Window below will appear. Click on extract.
– Note: You can use 7zip or any other tool for extraction.

ExtractPSD

This will open the extracted files automatically because we have the option checked. We will be using the following script below.

PSD-installation-scenario1
Note 1: It is recommend that you create a new deployment share for PSD, and copy an existing resources (applications, drivers, images) to it. Once a deployment share is extended with MDT, standard MDT task sequences will no longer work!
Note 2: This will ensure that existing MDT scripts are moved to a backup folder as shown below in the specified deployment share. Please see this link for further steps.
backup

Note:

When initiating PowerShell Deployment Extension for MDT, ensure you have the PowerShell execution policy configured in order to permit the script. Here are various ways to set Windows execution. How to Set Execution Policy via Windows PowerShell, how to set the PowerShell Execution Policy via the Windows Registry settings, and how to set PowerShell Execution Policy via Windows Settings.  

Unrestricted

Now that we have prepared our environment to support PSD installation. There are two possible scenarios to follow.
1: For NEW installations of PSD run the following command below. I pre-created a directory “DeploymnetShare” and the following command below completed the task for me.

.\Install-PSD.ps1 -psDeploymentFolder <your folder path> -psDeploymentShare <your share name>
CreateShare

As you can see, we have our Deployment Share created by the PSD command as shown below.

PSD-createdShares

2: To UPGRADE an existing MDT/PSD installation runs the following command below. This is used when you have an existing deployment share you wish to convert to PSD.

.\Install-PSD.ps1 -psDeploymentFolder <your folder path> -psDeploymentShare <your share name> -upgrade

I have created an existing deployment SHare to this example as shown below. To create a deployment share, right-click on the deployment share as shown below and follow the prompts. Now we have our deployment share we will be using for this test as shown below.

DeploymentShare
DeploymentShare
Deployment1
Deployment1

Upgrade Deployment Share

To upgrade this existing deployment share, please run the command as described above. Here is a screenshot of how it would look like for you. As you can see, the process completed successfully. This will ensure that existing MDT scripts are moved to a backup folder in the deployment share specified.

Upgrade-PSDshare

Regardless of the method, you are using above, kindly follow this guide to complete your Windows deployment. Nothing has changed other than you are working with a more modern framework “PowerShell” instead of VBScript.

Note: Unlike the normal MDT behavior, for PSD, after importing drivers to the Deployment Workbench, you need to run the New-PSDDriverPackage.ps1 script to generate the compressed driver packages used by PSD. You may also want to see from this link, “How to use Powershell with Task Sequences”. Henceforth, MDT takes care of the Execution Policy for you by running the script unrestricted. See this guide for the differences between MDT and WDS and What are the differences between High-Touch, Lite-Touch, and Zero-Touch installation?

Scenario 2 – Hydration Kit Installation

See the following guide on “how to install PSD with the Hydration Kit on Windows“: While the native PSD installation script as described in scenario 1 is used to either create a new or extend an existing MDT deployment share. It is also possible to use the Hydration script on a new server to set up a complete PSD lab environment from scratch, fully automated.

I hope you found this guide on PowerShell deployment extension for MDT helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:microsoft, Microsoft Deployment Tool kit, Microsoft Deployment Toolkit (MDT), Microsoft Windows, WDS, Windows 10, Windows Deployment Services, Windows Server 2016

Post navigation

Previous Post: What are the differences between MDT and WDS
Next Post: How to install PSD Hydration Kit for remote bare-metal deployment or via PXE boot

Related Posts

  • Was ist Windows Server und wie unterscheidet er sich vom normalen Windows
    Create a certificate template for BitLocker Network Unlock Windows Server
  • maxresdefault 1
    DriveLock Components: Important DriveLock components to master Windows Server
  • slide office 365 79
    Configure WSUS Email Notification for Office365 Windows Server
  • add or remove features on the specified server failed
    Error 0x80073701: The request to add or remove features on the specified server failed Windows Server
  • remote desktop connection tabs   rdp tabs
    Guide to Remote Desktop Connection Properties for Secure Access Windows
  • maxresdefault 2 1
    How to disconnect a Remote Desktop User Windows Server

More Related Articles

Was ist Windows Server und wie unterscheidet er sich vom normalen Windows Create a certificate template for BitLocker Network Unlock Windows Server
maxresdefault 1 DriveLock Components: Important DriveLock components to master Windows Server
slide office 365 79 Configure WSUS Email Notification for Office365 Windows Server
add or remove features on the specified server failed Error 0x80073701: The request to add or remove features on the specified server failed Windows Server
remote desktop connection tabs   rdp tabs Guide to Remote Desktop Connection Properties for Secure Access Windows
maxresdefault 2 1 How to disconnect a Remote Desktop User Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • BLOG LOGO
    How to create a static pod in Kubernetes AWS/Azure/OpenShift
  • Screenshot 2020 06 23 at 10.52.52
    How to uninstall Microsoft SQL Server on Windows Oracle/MSSQL/MySQL
  • BdeHdCfg
    Fix System Partition not available or large enough on Microsoft BitLocker Administration and Monitoring [Part 1] Windows Server
  • Enable Nexted Virtualization on VirtualBox
    ESXi VMB 411 Halting: Virtualbox Nested VT-X/AMD-V greyed out Virtualization
  • diag7
    How to run Windows Memory Diagnostics Tool on Windows Windows
  • On ubuntu mariadb
    How to install MariaDB on Ubuntu Linux
  • ntp server testen
    Enable or disable Linux System’s Clock Sync with NTP Server Linux
  • image 92
    Install Let’s Encrypt Wildcard SSL Certificate in cPanel using Certify The Web Configuration Management Tool

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.