Deleting A Reg Key

  • Thread starter Thread starter worldsmart02
  • Start date Start date
W

worldsmart02

I have a reg key which I want to gets deleted from bunch of users. I
wrote a batch file which calls the reg file for some reason the batch
file is not working. I want to use gpo or sms to do this.
REGEDIT.EXE /S \\abcd\delete.reg

exit

both the reg file and the batch are in the same directly.
 
Howdy!

I have a reg key which I want to gets deleted from bunch of users. I
wrote a batch file which calls the reg file for some reason the batch
file is not working. I want to use gpo or sms to do this.
REGEDIT.EXE /S \\abcd\delete.reg

So... okay... that's a bunch of information! ;-)
What's your batch file like? Is there any error logged in the
eventviewer of the client? What is the regkey you want to delete?

cheers,

Florian
 
I am trying to delete hkcu key . I ran the .reg file on a client it ran
but when i run the reg file through batch file. It doesn't run no errors
 
What context is the batch job running under? The process executing the
script needs to have rights to delete the key, ie: local administrator.
 
I am trying to delete hkcu key . I ran the .reg file on a client it ran
but when i run the reg file through batch file. It doesn't run no errors

You need to run it as a starup script. I assume that you ran it as a
logon script. Like this, it runs under the user's context - and users
normally do not have the permission to delete hkcu-keys.

cheers,

Florian
 
Back
Top