Veja a chave
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet00х\Control\Session Manager\Environment
Path
linha de comando, LastKnownGood:
REG Query "HKLM\SYSTEM\Select" /v LastKnownGood
obter toda a lista de hive ControlSet00х:
REG Query "HKLM\SYSTEM\Select"
get Path at ControlSet002:
REG Query "HKLM\SYSTEM\ControlSet002\Control\Session Manager\Environment" /v Path