Setting Up a Web Interface for MDT Deployment

Rephies-4542 336 Reputation points
2025-01-20T15:57:13.9733333+00:00

I have set up an MDT server that is working fine. Currently, every time a deployment is needed, the process involves logging into the server, opening the deployment workbench, and entering the Location, Model, SerialNumber and Computer Name details to run the deployment.

I would like to know how to set up a web page where these details can be entered through a link, allowing for the deployment to be initiated directly from the web interface.

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
932 questions
0 comments No comments
{count} votes

Accepted answer
  1. XinGuo-MSFT 20,646 Reputation points
    2025-01-21T01:54:13.2633333+00:00

    Hi,

    Setting up a web interface for MDT deployment can streamline your process significantly. Here's a high-level overview of how you can achieve this:

    1. Develop a web form using HTML and a server-side scripting language like PHP, ASP.NET, or Python. This form will collect the necessary details (Location, Model, SerialNumber, and Computer Name).
    2. Use the web form to submit the collected data to a backend script. This script will then interact with MDT to initiate the deployment process. You can use PowerShell scripts to automate the interaction with MDT.
    3. Write a PowerShell script that takes the input parameters from the web form and uses them to create a new computer entry in the MDT database. This script can also trigger the deployment task sequence.

    Here's a basic example of how you might structure the PowerShell script:

    param (
        [string]$Location,
        [string]$Model,
        [string]$SerialNumber,
        [string]$ComputerName
    )
    
    # Import the MDT module
    Import-Module "C:\Program Files\Microsoft Deployment Toolkit\Bin\MicrosoftDeploymentToolkit.psd1"
    
    # Create a new computer entry in MDT
    New-MDTComputer -Location $Location -Model $Model -SerialNumber $SerialNumber -ComputerName $ComputerName
    
    # Start the deployment task sequence
    Start-MDTDeployment -ComputerName $ComputerName
    
    

    Here is a sample for your reference:

    Sample MDT 2013 Web Service

    https://www.microsoft.com/en-us/download/details.aspx?id=42516

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.