-1
I’m trying to create a file .bat delete specific records within Regedit that works on any computer. When I try to delete the records inside the directory (Computer HKEY_LOCAL_MACHINE SYSTEM Controlset001 Services bam State Usersettings S-1-5...), it shows a large number that when I went deeper, I discovered that this serial is called "SID" and she switches from computer to computer.
I wish I had a code that would take the supposed "SID" and add it to the line of code. An example of this would be:
REG DELETE HKLM SYSTEM Controlset001 Services bam State Usersettings %SID%
During my attempts, I realized that it was not possible and would have to write a code/script that caught the SID with "whoami /user" and put it next to the "REG DELETE", but currently I do not have the capacity to do this and I am here looking for help.
Out of curiosity why do you want to delete this key? From what I saw it refers to the background processes Monitoramente...
– Ricardo Bohner
After the key is erased it must be recreated?
– Ricardo Bohner