Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does CurrentControlSet differ from ControlSet001 and ControlSet002?

In the Windows registry, how does CurrentControlSet differ from ControlSet001 and ControlSet002? Which should be set when installing for all users?

We are trying to add an environment variable for all users. Is this correct?

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Envinronment 
like image 802
Dan Hewett Avatar asked Nov 14 '08 21:11

Dan Hewett


People also ask

What is CurrentControlSet in registry?

The HKLM\SYSTEM\CurrentControlSet\Control registry tree contains information for controlling system startup and some aspects of device configuration.

What is Hkey_local_machine system ControlSet001?

Registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSetThe control set records information that is needed to start Windows and device related information that is used to run Windows (Windows Services).


2 Answers

Yes, you only need to update the CurrentControlSet key...

ControlSet001 and ControlSet002 are alternating backups of CurrentControlSet, you don't need to update them.

Edit: As K noted, CurrentControlSet is an alternating symbolic link to either ControlSet001 or ControlSet002. The other key is kept as a backup for the Load Last Known Good Configuration boot option.

Edit 2: See Microsoft KB Article 100010: What are Control Sets? What is CurrentControlSet?
Original page link broken, see archive.org backup page instead.

like image 116
Gordon Bell Avatar answered Nov 15 '22 23:11

Gordon Bell


CurrentControlSet is technically not a "backup" as Gordon states.
It is a symbolic link to one of the ControlSets on the computer. It always points to the ControlSet that is currently loaded.

like image 20
Khb Avatar answered Nov 15 '22 22:11

Khb