Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Scripts » How to install MDT PowerShell module on Windows
  • Update proxmox package database
    Resolve the Update Package Database failure on Proxmox VE Virtualization
  • uninstall gtla runner
    How to uninstall GitLab Runner from your Windows device Version Control System
  • Specifiy the right credential for adding a domain
    Specify user account name when adding a DC to an existing Forest Windows Server
  • How to Enable or Disable Inherited Permissions for Files and Folders in Windows
    How to Enable or Disable Inherited Permissions for Files and Folders in Windows Windows
  • PrintButton
    How to add Print Drivers with PowerShell, RUNDLL32, and VBScript in Windows 10 Windows
  • rdp error
    The connection was denied because the user account is not authorized for remote login: How to add and remove Remote Desktop Users Windows
  • Prevent OS Reinstallation When Switching from Legacy BIOS to UEFI
    Prevent OS Reinstallation: Change from legacy BIOS to UEFI Windows
  • Basic Cisco Switch Configuration
    Configure a username and secret on a Cisco Switch and Router Network | Monitoring

How to install MDT PowerShell module on Windows

Posted on 05/02/202122/07/2025 Christian By Christian No Comments on How to install MDT PowerShell module on Windows
How to install MDT PowerShell module

MDT PowerShell module is a vital tool that enables you to manage your Deployment Share using PowerShell effortlessly. In this article, we shall discuss how to install MDT PowerShell module. The MDT Windows PowerShell cmdlets come in a Windows PowerShell snap-in. The MDT cmdlets will then run from a Windows PowerShell console that has the MDT Windows PowerShell snap-in loaded. See how to update PowerShellGet and Package Management, and how to install and update PowerShell version 7 on Windows and Linux.

For more information on this use-case, please see “Automate drivers using SCConfigMgr Driver Automation Tool“. You might encounter various issues when using the “Driver Automation Tool” if you don’t have the MDT (Microsoft Deployment Toolkit) PowerShell module installed.

Below is an error message you will receive if you fail to install the MDT PowerShell module. You may also get the error message if the system fails to locate MDT PowerShell Module location.

<![LOG[======== MDT Issue Detected ========]LOG]!>
<![LOG[Warning: Failed to locate MDT PS module. Please specify location on the MDT Settings tab.]

Also, see the Review of the Synology CC400W Installation and Configuration, how to Enable Secure Boot: Fix Secure Boot certificates expiration, and how to Fix Windows defender blocked incoming connection on Windows.

Install MDT PowerShell module for MDT downloads

To install the MDT PowerShell module, please run the following command below. As you can see below, the command ran successfully and the module is now available in the specified path.

Import-Module “C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1”
install MDT PowerShell module for MDT Downloads

Note: Before running the command, ensure to run PowerShell with Administrative privilege and also permit the execution of PowerShell scripts on the server or workstation.

For more information on how to do perform this task, see the following guides. “how to set PowerShell Execution Policy via Windows Settings, how to set Execution Policy via Windows PowerShell, and how to set the PowerShell Execution Policy via Windows Registry.

List of MDT Windows PowerShell cmdlets

Below is a brief list and description of the MDT Windows PowerShell cmdlets.

CmdletDescription
Add-MDTPersistentDriveAdds a deployment share to the list of MDT persisted drives that can be restored using the Restore-MDTPersistentDrive cmdlet.
Disable-MDTMonitorServiceDisables the MDT monitoring services.
Enable-MDTMonitorServiceEnables the MDT monitoring services.
Get-MDTDeploymentShareStatisticsDisplays the statistics of a deployment share, including the number of entities per major folder in the deployment share.
Get-MDTMonitorDataDisplays the MDT monitoring information collected for one or more monitored MTD deployments.
Get-MDTOperatingSystemCatalogReturns the operating system catalog for a specific operating system. If the operating system catalog does not exist or is out of date, then the operating system catalog is regenerated.
Get-MDTPersistentDriveDisplays the list of deployment shares that can be restored using the Restore-MDTPersistentDrive cmdlet.
Import-MDTApplicationImports an application into a deployment share.
Import-MDTDriverImports one or more device drivers into a deployment share.
Import-MDTOperatingSystemImports one or more operating systems into a deployment share.
Import-MDTPackageImports one or more operating system packages into a deployment share.
Import-MDTTaskSequenceImports a task sequence into a deployment share.
New-MDTDatabaseCreates or upgrades an MDT DB database that is associated with a deployment share.
Remove-MDTMonitorDataRemoves one or more MDT monitoring data items from the collected MDT monitoring data in a deployment share.
Remove-MDTPersistentDriveRemoves a deployment share from the list of MDT persisted Windows PowerShell drives that can be restored using the Restore-MDTPersistentDrive cmdlet.
Restore-MDTPersistentDriveCreates a Windows PowerShell drive for each deployment share in the list of MDT persisted Windows PowerShell drives.
Set-MDTMonitorDataCreates a new or updates an existing MDT monitoring data item in the collected MDT monitoring data in a deployment share.
Test-MDTDeploymentShareVerifies the integrity of a deployment share.
Test-MDTMonitorDataVerifies that the MDT monitoring services is configured correctly and running.
Update-MDTDatabaseSchemaUpdates the MDT DB database schema.
Update-MDTDeploymentShareUpdates a deployment share.
Update-MDTLinkedDSReplicates content from a deployment share to a linked deployment share.
Update-MDTMediaReplicates content from a deployment share to a deployment media folder.

FAQs

What to do when faced with this error “Unable to delete install.wim file in the sources folder: The action cannot be complete, because it is open in mmc”?

Close the deplomentshare and initiate the deletion process again. Here is a similar error ‘Action cannot be complete because the computer is open in Wimserv“.

Can I deploy Windows 11 with Microsoft Deployment Toolkit (MDT)?

Deploying Windows 11 with Microsoft Deployment Toolkit (MDT) is possible. But MDT dos not officially support Windows 11 and Windows Server 2022 deployment and no longer developed further by Microsoft.

Please, see How to remove an MDT Deployment Share, What are the differences between MDT and WDS, and how to “Copy Deployment Share between Servers without using linked Deployment Shares“.

I hope you found this blog post on how to install MDT PowerShell module helpful. If you have any questions, please let me know in the comment session.

5/5 - (1 vote)

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
Scripts Tags:Microsoft Deployment Tool kit, Microsoft Deployment Toolkit (MDT), PowerShell, PowerShell version 7, Windows 10, Windows Deployment Services, Windows Server 2016

Post navigation

Previous Post: Windows Driver Management: Upgrade Driver Automation Tool
Next Post: Disable automatic screen lock on Ubuntu Desktop

Related Posts

  • powershell commands lede 1024x276 1
    PowerShell Remoting: Guide to Windows Management Instrumentation Scripts
  • sdfgh
    Get a list of installed applications on Windows Scripts
  • WinReg
    Unable to import Windows Reg File: The specified file is not a registry script Scripts
  • powershell01 1
    Create a self-signed certificate and export it in PFX format via PowerShell [Part 1] Scripts
  • S3 Bucket
    Access AWS Management Console and Create Resources with AWS CLI on Windows AWS/Azure/OpenShift
  • powershell commands lede 1024x276 1
    Enable WinRM on Windows Servers and Windows PCs Scripts

More Related Articles

powershell commands lede 1024x276 1 PowerShell Remoting: Guide to Windows Management Instrumentation Scripts
sdfgh Get a list of installed applications on Windows Scripts
WinReg Unable to import Windows Reg File: The specified file is not a registry script Scripts
powershell01 1 Create a self-signed certificate and export it in PFX format via PowerShell [Part 1] Scripts
S3 Bucket Access AWS Management Console and Create Resources with AWS CLI on Windows AWS/Azure/OpenShift
powershell commands lede 1024x276 1 Enable WinRM on Windows Servers and Windows PCs Scripts

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

  • Update proxmox package database
    Resolve the Update Package Database failure on Proxmox VE Virtualization
  • uninstall gtla runner
    How to uninstall GitLab Runner from your Windows device Version Control System
  • Specifiy the right credential for adding a domain
    Specify user account name when adding a DC to an existing Forest Windows Server
  • How to Enable or Disable Inherited Permissions for Files and Folders in Windows
    How to Enable or Disable Inherited Permissions for Files and Folders in Windows Windows
  • PrintButton
    How to add Print Drivers with PowerShell, RUNDLL32, and VBScript in Windows 10 Windows
  • rdp error
    The connection was denied because the user account is not authorized for remote login: How to add and remove Remote Desktop Users Windows
  • Prevent OS Reinstallation When Switching from Legacy BIOS to UEFI
    Prevent OS Reinstallation: Change from legacy BIOS to UEFI Windows
  • Basic Cisco Switch Configuration
    Configure a username and secret on a Cisco Switch and Router Network | Monitoring

Subscribe to Blog via Email

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

Join 1,836 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

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.