0

I have a couple Registry files that I'm trying to import through MDT. I created a folder called Reg inside the scripts folder on the MDT server and put the files in there. I added individual command line task sequences with the line reg import %scriptRoot%/reg/MyRegFile.reg. It is under the State Restore task sequence.

The registry entry is not added when I search inside Registry. If I manually double click the reg file on the target machine it imports fine. Not sure which windows/logs/mdt file to look in to see why it failed.

Rick
  • 117
  • 6
  • Is the reg import running in Windows PE Mode? – Elliot Huffman Aug 04 '23 at 11:05
  • It is also recommended to not put your system configurations in the script root, all system modifications should be in the apps system as a packaged app, this will prevent overwrite during updates and potential permission misconfigurations that would let an attacker gain remote control of your distribution share server and managed systems. – Elliot Huffman Aug 04 '23 at 11:07
  • @ElliotHuffman Not sure, since the import is not not running at all. – Rick Aug 06 '23 at 11:28
  • @ElliotHuffman are there steps to create a packaged app? – Rick Aug 06 '23 at 11:29
  • When you say the import isn't working, what does the powershell error say? – Elliot Huffman Aug 14 '23 at 17:28
  • @ElliotHuffman the registry was not applied. When viewing the MDT script logs, I don't see it ever applied. – Rick Aug 22 '23 at 11:27
  • I don't see it in the MDT-Ps.log file – Rick Aug 22 '23 at 11:30
  • Join me in this chat room: https://chat.stackexchange.com/rooms/info/148024/mdt-troubleshooting-rick?tab=general – Elliot Huffman Aug 22 '23 at 20:37
  • 1
    I created a PowerShell script to import the registry keys and that seemed to work. I did see the log with 0 return with the name of the task schedule entry and it did apply. – Rick Aug 24 '23 at 15:58
  • Go ahead and answer your question with that, I will upvote it. – Elliot Huffman Aug 25 '23 at 17:27

0 Answers0