Jump to content

Need to REMOVE a registry entry through batch file


Recommended Posts

Posted

I need to remove this entry on a lot of pc's

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]

"EFI Job Monitor"="C:\\WINNT\\system32\\rundll32.exe C:\\WINNT\\system32\\spool\\DRIVERS\\W32X86\\3\\efjm.dll,run"

How do I remove it? I know the "REGEDIT /s Remove.reg" part, not sure what to put in the reg file itself..

cheers


Posted

A "dash" in value will do it (it will delete the entry).

Example:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"EFI Job Monitor"=-

Similarly, you can even remove entire keys!

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]

That will delete the entire key which is listed.

Posted

Just stick this in a batch file.

REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "EFI Job Monitor"

Deletes the registry value "EFI Job Monitor" under Run key.

[EDIT]

For remote computers, include the computer name before the path of the subkey in the \\ComputerName\PathtoSubkey format. Omitting ComputerName causes the operation to default to the local computer.

i.e.

REG DELETE \\TAURUS\HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v "EFI Job Monitor"

Deletes the registry value "EFI Job Monitor" under Run key on TAURUS.

[/EDIT]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...