Basically if you just want to run chkdsk /f or maybe chkdsk /r on bootup every time, you can set it to run when you shut down rather than trying to make it work in HKLM\SYSTEM\CurrentControlSet\Control\Session Manager
.
Here is how:
Create a file C:\WINDOWS\system32\confirm.txt with JUST y
in it.
Then create C:\WINDOWS\system32\Chkdsk_Reboot.bat with this code in it:
echo y > confirm.txt
chkdsk c: /f /x < confirm.txt
Now if you have XP Pro, or other Pro-level OS'es, open gpedit.msc>Computer Configuration>Windows Settings>Scripts>Shutdown, and add that Chkdsk_Reboot.bat as a shutdown script.
Next reboot you will run your chkdsk command.
I am not sure if this will work for XP home since it does not have gpedit.msc. You may be able to create this directory structure and add the batch file there but I am not sure if it will work since Home does not use Group Policy: C:\WINDOWS\System32\GroupPolicy\Machine\Scripts\Shutdown
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/Nms9X.gif)