K2000 - How to delete a registry key on a Preinstallation Task
I'm trying to fix a ifM63x64.sys error on boot. Luckily, the solution is to delete the following keys below. Now, I would like to create a Preinstallation to delete these reg keys so the machine can continue to image. So far, it's not working. Thank you.
The Keys to delete:
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\IFCoEMP]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\IFCoEVB]
The following script I'm using is this:
reg delete [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\IFCoEMP] /f
reg delete [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\IFCoEVB] /f
1 Comment
[ + ] Show comment
-
I'm not sure I understand the question. Generally a pre install task runs before an image is deployed so why delete a registry entry on an image you plan to replace with a new one? If you are meaning you have deployed an image that gives this error on boot and you want a task to delete the registry entries after the deploy but before the boot you would need a Mid level task. - genfoch01 10 years ago
Answers (3)
Please log in to answer
Posted by:
EdT
10 years ago
Where on your system is reg.exe ? Please try again specifying the full path and file extension to reg.exe.
At a command prompt, type reg delete /? and check that your syntax is correct. For example, I see HKLM and not HKEY_LOCAL_MACHINE when I try it on my WIn 7 machine.
You could also try redirecting output from your command line to a logfile so you can see any error messages.
Posted by:
andrew_lubchansky
10 years ago
As a preinstall task, you are most likely targetting the registry of the KBE with a task like that. You would need to use a VB script or something similar to load the external hive and change it.
Personally I would be trying to find out why the image is doing that in the first place.
Is this a Sysprep'd image?
Posted by:
mmudre@yahoo.com
10 years ago
The following script I'm using is this:
reg delete [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\IFCoEMP] /f
reg delete [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\IFCoEVB] /f
I am not sure if you should be using the square braces in command. And also the HKLM thing mentioned by EdT:
reg delete "HKLM\SYSTEM\ControlSet001\services\IFCoEMP" /f