question

JeffB-2607 avatar image
0 Votes"
JeffB-2607 asked JeffB-2607 answered

Adding Server Roles during PXE Boot Task Sequence

I'm kinda new to this, so forgive my ignorance:

I've got a fairly vanilla Server 2019 image available for deployment via PXE boot on my WDS server. What I'd ultimately like to do is have this available to be used on a Hyper-V host and on any guest VMs on that host. However, since it could be used as the base installation of a Domain Controller, File Server, App Server, etc., I have not installed a lot of server roles on the base image.

I know I can install roles via Powershell using Install-WindowsFeature, but is there a way in MDT to let me pick which ones to install? For example, during the deployment, can I have a check box next to a "Install Domain Controller Roles" and another next to "Install Print Server Roles" or whatever, and depending on which box I check, the appropriate Powershell command is run during the Post Install Task Sequence in MDT?

Does that question make sense? It makes sense in my head, but my head is a strange place at times.

Thanks!

Best,
JRB

mem-mdt
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AllenLiu-MSFT avatar image
0 Votes"
AllenLiu-MSFT answered

Hi, @JeffB-2607
Thank you for posting in Microsoft Q&A forum.
Yes, we can do it. Just simply add the Install Roles and Features action to your Task Sequence, and select the corresponding
operation system.
108805-8.jpg108834-9.jpg

An article for your reference:
https://www.deploymentresearch.com/mdt-2010-inside-the-install-roles-and-features-action/
(Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



8.jpg (35.8 KiB)
9.jpg (38.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JeffB-2607 avatar image
0 Votes"
JeffB-2607 answered

Thanks, AllenLiu!

Best,
JRB

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.