To automate a range of operations using a provided template, follow these steps:
- Download the Template: Obtain the template file for your Windows version:
-
Edit the Template: Customize the template configuration according to your needs.
-
Execute the Optimizer: Run the optimizer executable with the edited template configuration using the command:
optimizer.exe /config=template.json
- Should match your actual Windows version. Available values:
7 | 8 | 10 | 11
- Choose target folders for cleaning by marking them as
true.
- Choose DNS provider:
- Available values:
Automatic | Custom | Cloudflare | OpenDNS | Quad9 | Google | AlternateDNS | Adguard | CleanBrowsing | CleanBrowsing (adult filter) - If you choose
Custom, you should define at least one primary IPv4 and IPv6 DNS servers. Alternative DNS serves are optional. - Set FlushDNSCache to
trueto perform DNS cache flushing. Example:
"Pinger": {
"SetDNS": "Cloudflare",
"CustomDNSv4": [],
"CustomDNSv6": [],
"FlushDNSCache": true
}
"Pinger": {
"SetDNS": "Custom",
"CustomDNSv4": ["3.3.3.3"],
"CustomDNSv6": ["::1"],
"FlushDNSCache": true
}
- Prevent processes from running by providing filenames.
- Allow previously prevented processes to run again. Example:
"ProcessControl": {
"Prevent": ["chrome.exe", "firefox.exe"],
"Allow": ["opera.exe"]
}
- Mark
IncludeWwwCnametotruein order to automatically adding an extrawww.record for each entry. - Entries in the
Removelist should be the domain names you want remove from the hosts file. - Entries in the
Blocklist route to0.0.0.0, effectively blocking access. - Entries in the
Addlist are added. Example:
"HostsEditor": {
"IncludeWwwCname": true,
"Block": ["youtube.com", "google.com"],
"Remove": ["facebook.com"]
"Add": [
{
"Domain": "test.com",
"IPAddress": "192.168.1.5"
},
{
"Domain": "test2.com",
"IPAddress": "192.168.1.9"
}
]
}
- Enable core Windows components by marking them as
true. Use for repairing computers from malicious actions.
TakeOwnership: Add or remove "Take Ownership" option in right-click menu. (false)OpenWithCMD: Add or remove "Open CMD here" option in right-click menu. (false)
- Caution: These tweaks are technical, avoid unless you understand them.
UnlockAllCores: Leavenullorfalse.DisableHPET: Enable or disable High Precision Event Timer.EnableLoginVerbose: Enable or disable Detailed Login Screen.EnableRegistryBackups: Enable periodic backups of Registry.
- Mark
trueto reduce svchost.exe processes for optimal memory. - Mark
falseto enable process splitting for optimal performance.
- Mark options to apply as
true. - Mark options to reset as
false. - Mark options to ignore as
null.
- Final action after template execution:
- Mark
Restartastrueto restart and apply changes. - Configure
RestartTypefor different restart types (NormalorSafeMode). - Use
DisableDefenderandEnableDefenderfor automated Windows Defender control.
Note: Review and customize the template configuration carefully before executing.