How do I locate a script that re-writes a registry value?

winpigler

New member
Local time
1:07 PM
Messages
3
Right now I am running on Windows 7 home premium 64-bit. There is a legalnoticecaption and legalnoticetext enabled in the registry, and when I delete these values and restart, they re-appear! I've even tried deleting them altogether. I'm guessing there is some sort of script enabled that re-writes the registry values upon deletion, and I need some help identifying and getting rid of said script. Or, if you have any suspicions on what else it may be, please do not hesitate to tell me to check it out.

Thanks!
 

My Computer My Computer

OS
Windows 7 64 bit home Premium
Hello Winpigler, and welcome to Seven Forums.

It is normal for these two registry entries to be here. By default their "Data" field is empty.

These two registry entries are for having a logon title and message as in METHOD TWO of the tutorial below if wanted. You can just right click on them, click on Modify, and leave the "Data" empty to not have a custom message.

Logon Title and Text Message - Vista Forums

Hope this helps,
Shawn
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
I understand that they are there by default, but when we purchased the laptop, these registry values were filled with text, and when I try and delete the text, it always re-appears upon startup. I am suspecting that there is a script running that auto-fills the values when they have been edited, and I was wondering if there was a way to find the script and delete it, so that when I delete the legalnoticecaption and legalnoticetext, they are gone for good.

I hope that clarifies my question a little. Thank you!
 

My Computer My Computer

OS
Windows 7 64 bit home Premium
Can you get a process monitor log of the boot process? Seeing which process is writing the values will help determine where it's coming from.

To get a trace, download/extract/run procmon (from the above link) and accept the EULA if prompted. Then, from the menu, click Options, then Enable Boot Logging. This should prompt you that you have just told procmon to log the next boot process (and asks you to click the "OK" button - please do so). Now, clear the values in the registry of any data (so that they are blank), and then reboot. Once you've logged in, start procmon again and save the log to a .pml file when prompted. You can use WinRAR or 7zip to compress this file, and upload to a sharing site. Post a link to that file, and we'll download it and look at it for clues (or even answers, maybe).
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
Are you part of a domain? If so, that would be doing it, and only the domain administrator will be able to remove or change them on the domain's system.

If not, then in addition to what cluberti (Carl) posted above, also check those registry values at all of the different registry locations below that they are found at, and modify to clear their "Data" fields. One location may be rewriting the other.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\System


Next, check all of the different startup program list locations in the tutorial below to see if one of them may be what is rewriting it if the above is not it.

http://www.sevenforums.com/tutorials/1401-startup-programs-change.html
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Brink: I checked in all of the locations you specified, and it is only located once, in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
I also did a Ctrl-F and searched for it, and it only found the one. (Gotta love Ctrl-F)

Cluberti: I will try what you suggested tomorrow. It's 11pm here, so I think it's time for bed. I'll reply to the thread when I get home tomorrow night.

Thank you both very much for the quick responses.
 

My Computer My Computer

OS
Windows 7 64 bit home Premium
Back
Top