views:

5064

answers:

5

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. Should we set:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Envinronment\EnvToSet?

+4  A: 

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.

Gordon Bell
+1  A: 

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.

Regards K

Khb
A: 

HI,

The write answer is //support.microsoft.com/kb/100010

So to Gorden, please do not answer quetions if you do not know the write answer

with regards

Rob

A: 

--The CurrentControlSet subkey is really a pointer to one of the ControlSetXXX keys.-- The most valuable and reliable control set is CurrentControlSet. If you need to modify system settings in the Registry, CurrentControlSet is the best subkey to choose because you know that it is the correct control set.

A: 

show all the values for each Control Set (ControlSet001,ControlSet003 be the same as the CurrentControl Set?

robby