Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Add a reg key during a os task sequence

micdam

Well-Known Member
Messages
99
Reaction score
1
Points
8
Hi,
i am going to use SCCM 2012 to deploy Win10 and i have all done except editing registry in task sequence.
I have tried to add a "Run Command Line" step on various places. Before Setup Windows and Configuration Manager and after but nothing changes. The reg keys were not added.
upload_2017-10-19_16-16-35.png

The commandds were:

Disable download
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore /v AutoDownload /t REG_DWORD /d 2 /f


Disable features
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Cloud Content" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f


Then i create a task sequence with only two staeps that run the same commands, i deplooyed it to the device and it works fine so i think that the syntax was correct and perhaps the place is wrong.

upload_2017-10-19_16-20-28.png



Can someone help me?

i've attached smsts.log
 

Attachments

You have to run the command after booting to Windows not WinPE as your are modifying Windows environment. As per @Marek Belan 's post.

I would recommend to create a package with a bat file. what you can do is, on your computer export the reg keys and then inside the batch file do regedit.exe /s exported_reg_name.reg. Use it as an Install Application Task.
 
Back
Top