/build/static/layout/Breadcrumb_cap_w.png

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 9 years ago

Answers (3)

Posted by: EdT 9 years ago
Red Belt
0
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 9 years ago
2nd Degree Black Belt
0
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 9 years ago
Senior White Belt
0
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
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ