While this is possible, it would require some work on your part.
First step is to choose "Optimal" or whatever custom settings you want in the Optimizer, and click "Apply changes" button.
Next, look at each line in the changes preview page
hen you know your optimal settings. You would have to duplicate each of those lines in your batch file/script. The ones that are PowerShell or netsh commands can be copied directly. The Registry changes would have to be modified.
The syntax for adding/replacing keys in the Registry is something like:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider" /v LocalPriority /t REG_DWORD /d 4 /f
You can see the syntax of the command here: https://docs.microsoft.com/en-us/win...mmands/reg-add
You would want to add the values from the "New Value" column in that Optimizer page to the Registry.
I hope this helps
Bookmarks