Score:0

Apply reg import in MDT Task Sequence

cn flag

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.

dz flag
Is the reg import running in Windows PE Mode?
dz flag
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.
Rick avatar
cn flag
@ElliotHuffman Not sure, since the import is not not running at all.
Rick avatar
cn flag
@ElliotHuffman are there steps to create a packaged app?
dz flag
When you say the import isn't working, what does the powershell error say?
Rick avatar
cn flag
@ElliotHuffman the registry was not applied. When viewing the MDT script logs, I don't see it ever applied.
Rick avatar
cn flag
I don't see it in the MDT-Ps.log file
dz flag
Join me in this chat room: https://chat.stackexchange.com/rooms/info/148024/mdt-troubleshooting-rick?tab=general
Rick avatar
cn flag
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.
dz flag
Go ahead and answer your question with that, I will upvote it.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.