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!

NEW Add registry in upgrade task sequence

  • Thread starter Thread starter dj3094
  • Start date Start date
  • Replies Replies 2
  • Views Views 3K

dj3094

Well-Known Member
Messages
241
Reaction score
7
Points
18
hello experts,
I am in process of upgrading windows 10 1709 to 1803, everything works great except adding a reg key. I have 2 run command lines to add 2 reg keys one of them work and other wont work. any suggestions
reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters" /v "SmbServerNameHardeningLevel" /t REG_DWORD /d 0 /f

the one below works
cmd /c reg add HKLM\Software\Policies\Microsoft\Windows\CloudContent /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f

regards
Dj
 
What doesn't work with it? What error are you getting? Does ti work outside of SCCM?
 
yes it works out side, I didnt get any error as checked continue on error. But i did deploy this step in custom TS. I got error access denied

<![LOG[
Parsing step node: Turn off SMB Hardening]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:514">
<![LOG[
Parsing Action Type node: SMS_TaskSequence_RunCommandLineAction]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:517">
<![LOG[Description: ]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:520">
<![LOG[ContinueOnError: true]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:523">
<![LOG[SuccessCodeList: 0 3010]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:531">
<![LOG[RetryCount: 0]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:534">
<![LOG[No condition is associated with the step.]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:690">
<![LOG[Disable: ]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:542">
<![LOG[Run in attribute: WinPEandFullOS]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:550">
<![LOG[Timeout: ]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:553">
<![LOG[DefaultVarlist found]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:614">
<![LOG[Variable name: SMSTSDisableWow64Redirection]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:646">
<![LOG[Variable name: _SMSTSRunCommandLineAsUser]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:646">
<![LOG[Action command line: smsswd.exe /run: reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters" /v "SmbServerNameHardeningLevel" /t REG_DWORD /d 0 /f]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:569">
<![LOG[Adding instruction at 35]LOG]!><time="11:17:15.671+360" date="01-08-2019" component="TSManager" context="" type="1" thread="5788" file="tsxml.cpp:571">
 
Back
Top