none
remove reg file with a gpo / script

    Pregunta

  • hi all, I need to remove a reg file from the following locations

    hllm/software and hklm/software/wow6432node

    I have deployed a reg file to the above location using a script and noticed the reg file is incorrect I therefore really need to remove it from approx. 60 machines!

    what is the best way to do this?

    any help would be much appreciated

    thanks

    miércoles, 28 de noviembre de 2012 8:59

Respuestas

  •  
    > well when I disable the service in question the reg file is deleted as
    > per the instructions given so what makes you say the service is
    > nothing to do with this???
     That's ok - you are right in this special case. You didn't mention that
    you want to delete a registry key that belongs to this service. My fault :-D
     
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    • Marcado como respuesta hyperNoddy viernes, 30 de noviembre de 2012 11:14
    miércoles, 28 de noviembre de 2012 13:43

Todas las respuestas

  •  
    > hllm/software and hklm/software/wow6432node
     
    Group Policy Preferences "Registry" can do that for you...
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    miércoles, 28 de noviembre de 2012 10:44
  • I cannot see how to do this with Group Policy Preferences can you explain please?
    miércoles, 28 de noviembre de 2012 11:20
  • Hello,

    It's easy:

    Then you select the key(s) you want to delete.
    Once the Item is created, you need to change the Action to "Delete":

    (example)


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!


    miércoles, 28 de noviembre de 2012 11:33
  • ok . .thanks, in the key path can I browse to a network machine? as the reg file is not installed on the server
    miércoles, 28 de noviembre de 2012 11:39
  • is there a way to remove the entire folder in the registry? not just the file?
    miércoles, 28 de noviembre de 2012 12:08
  • I must be missing something because the reg file is not removing yet a gpresult is showing the policy is applying

    iv created it as a computer gpo and given domain computers access to the gpo

    miércoles, 28 de noviembre de 2012 12:21
  • ok . .thanks, in the key path can I browse to a network machine? as the reg file is not installed on the server

    This is a textbox.
    So you can type the correct path. It's magic :-)

    is there a way to remove the entire folder in the registry? not just the file?

    This will delete the key in the registry. Not a file.


    MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!

    miércoles, 28 de noviembre de 2012 12:23
  • aaahh this is why

    Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards. 

    found the above in the event log - so how do I stop the service? its VNC

    miércoles, 28 de noviembre de 2012 12:36
  •  
    > Windows detected your registry file is still in use by other
    > applications or services. The file will be unloaded now. The
    > applications or services that hold your registry file may not function
    > properly afterwards.
     
    No this is NOT why. That's a totally different issue and has nothing to
    do with your unability to delete a registry key. Follow the instructions
    Matthias gave and you will be fine :-D
     
    > found the above in the event log - so how do I stop the service? its VNC
    >
     
    Get a bug fixed version of the product.
     
    regards, Martin
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    miércoles, 28 de noviembre de 2012 13:10
  •  
    > Windows detected your registry file is still in use by other
    > applications or services. The file will be unloaded now. The
    > applications or services that hold your registry file may not function
    > properly afterwards.
     
    No this is NOT why. That's a totally different issue and has nothing to
    do with your unability to delete a registry key. Follow the instructions
    Matthias gave and you will be fine :-D
     
    > found the above in the event log - so how do I stop the service? its VNC
    >
     
    Get a bug fixed version of the product.
     
    regards, Martin
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    well when I disable the service in question the reg file is deleted as per the instructions given so what makes you say the service is nothing to do with this???
    miércoles, 28 de noviembre de 2012 13:12
  •  
    > well when I disable the service in question the reg file is deleted as
    > per the instructions given so what makes you say the service is
    > nothing to do with this???
     That's ok - you are right in this special case. You didn't mention that
    you want to delete a registry key that belongs to this service. My fault :-D
     
     

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    • Marcado como respuesta hyperNoddy viernes, 30 de noviembre de 2012 11:14
    miércoles, 28 de noviembre de 2012 13:43