Create a software resource, including the removal script as part of the package, and then write an uninstall command line that runs the script you included in the package. Create a detection rule that detects when registry entries are present. Save the software resource. Create a managed software delivery policy for the software resource and assign it to all computers. It will execute on all computers and, if the registry entries are found (detection rule = true), the uninstall command line will run, running the script and removing the registry entries.
Be sure to test and pilot before assigning to all computers in production to ensure you have the expected behavior. Does this answer your question?
Hi MC ,
can u provide me some script/batch file for registry removal
Using the build-in reg.exe command (on windows) would be easy to delete the reg-key/value
To delete the regkey "HKLM\Software\regkey_to_detele" on the computer named "ComputerName" this would look like:
REG DELETE \\ComputerName\HKLM\Software\regkey_to_detele /va /f
I am aware about above things but can anyone provide me batch file/script for the same.
Create a file called myscript.cmd, edit the file and enter the command you which to execute.
Thanks all, I have created myself a script for the same.
Thanks al and specially Angel ID, but above things are not sufficient.
Above al thing already I have reserached and made on a script which runs perfectly as per my expectation.
Again thanks to all