How to create the page to let user select the disk to install OS?

子易 李 20 Reputation points
2024-02-09T16:45:13.2033333+00:00

Does there have any way to show out the disk select page during OS install via MDT? the expected result as follows User's image

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).
892 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AlexZhu-MSFT 5,871 Reputation points Microsoft Vendor
    2024-02-12T02:34:35.4266667+00:00

    Hi,

    It seems the screenshot is from the below blog. Is there anything wrong when we follow the blog?

    Choose a Disk to Install Windows on using WPF and PowerShell

    mdt_prompt_to_choose_disk

    Regards,

    Alex


  2. AlexZhu-MSFT 5,871 Reputation points Microsoft Vendor
    2024-02-21T07:51:59.2733333+00:00

    Hi,

    Thank you for the response. After checking the screenshots, I have the following comments:

    1, for the "create folder" task, the command is incorrect, the ending double quotation marks is missing, for example:

    powershell -command "& {new-item x:\choosedisk -itemtype directory -ea silentlycontinue}" 
    
    

    2, for the "copy" task, we should check if the folder exist first, if yes, continue to copy

    3, if we use a package as shown in below picture, why need to copy the .ps1 to x drive and execute it form there? If we do NOT want to use a package, alternatively, we can put the script folder in a UNC path and map the drive prior to executing it, for example:

    net use m: \\server01\d /user:<username> <password>
    

    choose-disk

    Regards,

    Alex

    0 comments No comments

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.