SCCM 2203 changing registry value using task sequence

PerserPolis-1732 1,516 Reputation points
2022-07-19T13:07:29.253+00:00

Hi,

I want to change changing registry value using sccm task sequence. The Registry Key is existing and I want to change ONLY the value

That is my command line

cmd /c reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f

The D-WORD KEY "HiberbootEnabled" with value "1"exist already and I want to change it to "0"

Is my command correct?
Regards

Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
467 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jason Sandys 31,186 Reputation points Microsoft Employee
    2022-07-19T15:38:03.75+00:00

    First, no need to use cmd here as reg is an exe. While this seems innocuous, it can cause issues as it adds a layer of execution and redirection.

    But yes, as far as I can tell, this is correct assuming you are using a Run Command Line task although keep in mind that you must run this after the Setup Windows and ConfigMgr task for it to impact the deployed OS.

    Have you tested this? Are you having an issue? If so, have you examined the smsts.log?

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful