Mark C Posted October 26, 2023 Report post Posted October 26, 2023 We currently have MDT integration with Configuration Manager, however due to Microsoft no longer developing MDT and vbscript being removed in the future, I've being reviewing our Task Sequences. I've been able to remove MDT from the base metal pxe boot TS and it works, however we also use the Refresh Only part of the MDT TS which as an 0x80070057 when the TS starts the Apply Operating System. I've replaced the MDT Gather task with powershell script from GitHub - jonconwayuk/PowerShell_Gather: PowerShell script to replace MDT Gather in Windows OSD which doesn't work. The TS only works if I add the Use Toolkit Package and Gather tasks for MDT which then allows the TS to wipe the C drive and apply the wim file. I presume the MDT Gather is setting a variable that the Powershell script doesn't. Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted October 26, 2023 Report post Posted October 26, 2023 the variables detected/set should be revealed in the smsts.log during the Gather steps, so look there and then add them to the new Powershell script, have you tried that ? Quote Share this post Link to post Share on other sites More sharing options...
Mark C Posted October 26, 2023 Report post Posted October 26, 2023 (edited) I think I've now found the cause, the apply operating system task is using the variable OSDisk which as it isn't in the Powershell script I've set a set variable task, however it was set to C and in the BDD.log it is showing as c: Edited October 26, 2023 by Mark C Quote Share this post Link to post Share on other sites More sharing options...