{"id":524,"date":"2008-09-01T09:38:12","date_gmt":"2008-09-01T04:08:12","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=524"},"modified":"2021-05-24T21:05:20","modified_gmt":"2021-05-24T15:35:20","slug":"optimize-windows-xp-vista-registry-regularly-using-ntregopt","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/optimize-windows-xp-vista-registry-regularly-using-ntregopt\/","title":{"rendered":"Optimize the Windows Registry Regularly Using NTREGOPT With Task Scheduler"},"content":{"rendered":"<p>NTREGOPT is a registry optimization tool for Windows. This program compacts the registry to the minimum size possible by removing any slack space that may be left after installing or uninstalling applications in the system. Note that this program does not modify the registry contents in any way.<!--more--><\/p>\n<h2>Registry optimization as a scheduled task<\/h2>\n<p>NTREGOPT can be run in silent mode using the <code>\/silent<\/code> parameter, and can be run as a Scheduled Task. Here are the instructions.<\/p>\n<p><b>Important:<\/b> You should restart the system immediately because any changes made to the registry after NTREGOPT has been run are lost after the reboot. The user is supposed to close all running applications before continuing the registry optimization process. In this case, we&#8217;re going to launch NTREGOPT using a VBScript so that the user is cautioned about a system restart that&#8217;ll take place after optimization is complete.<\/p>\n<p>Also, <b>do not<\/b> run NTREGOPT when updates (from Windows Update) are pending to be installed, or when a reboot is already pending.<\/p>\n<p>Follow these preliminary steps first:<\/p>\n<ul>\n<li>Download and install <b><a title=\"NTREGOPT Homepage\" href=\"https:\/\/www.majorgeeks.com\/files\/details\/ntregopt.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">NTREGOPT<\/a><\/b> if it&#8217;s not already installed.<\/li>\n<li>Download <b><a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/NTREGOPT.zip\">ntregopt.zip<\/a><\/b> and save to Desktop. Extract the file <b>ntregopt.vbs<\/b> (which is the launcher script) to a permanent folder. This is the file we&#8217;re going to run using Task Scheduler.<\/li>\n<\/ul>\n<p>1. Open Task Scheduler from Control Panel or by running the command <b>control schedtasks<\/b> from Start, Search box.<br \/>\n2. In the <b>Actions<\/b> pane on the right, click <b>Create Task\u2026<\/b><br \/>\n3. Type a name for the task that you want to create (e.g. <b>NTREGOPT<\/b>), and optionally assign a description.<br \/>\n4. Enable the option <b>Run with highest privileges<\/b>. This is an important step.<br \/>\n5. Select the <b>Triggers<\/b> tab, and click <b>New<\/b><br \/>\n6. In the <b>New Trigger<\/b> window, configure the settings as desired (say, <i>Weekly<\/i>), and click <b>OK<\/b><br \/>\n7. Select the <b>Action<\/b> tab, and click <b>New<\/b><\/p>\n<p>8. In the <b>Program\/script:<\/b> text box, mention the full path to <b>NTREGOPT.VBS<\/b> (e.g. &#8220;D:\\Scripts\\NTREGOPT.VBS&#8221;)<\/p>\n<pre><b>Note:<\/b> If the path contains spaces, include it within double-quotes.<\/pre>\n<p>10. Click <b>OK<\/b>, <b>OK<\/b>.<\/p>\n<p>You\u2019ve now created a new task to run registry optimization once in a week. When the Task runs, you&#8217;ll see message windows as shown below.<\/p>\n<p>11. At this point, save your work and close all running applications before clicking <b>Yes<\/b>.<br \/>\n12. Click <b>OK<\/b> to start the registry optimization task.<\/p>\n<h3>NTREGOPT switches<\/h3>\n<p>If you plan to run NTREGOPT using a shortcut, here are the command-line parameters that you would like to know. Simply running NTREGOPT.EXE without any switches, will work as well.<\/p>\n<pre>NTREGOPT silent [\/noprogresswindow] [\/reboot]<\/pre>\n<p>Description of the command line switches:<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Switch<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>silent<\/td>\n<td>Puts NTREGOPT into &#8220;silent&#8221; mode.<\/td>\n<\/tr>\n<tr>\n<td>\/noprogresswindow<\/td>\n<td>Hides the progress window during optimization.<\/td>\n<\/tr>\n<tr>\n<td>\/reboot<\/td>\n<td>Automatically reboots the computer when optimization<br \/>\nof the registry is complete.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>NTREGOPT is a registry optimization tool for Windows. This program compacts the registry to the minimum size possible by removing any slack space that may be left after installing or uninstalling applications in the system. Note that this program does not modify the registry contents in any way.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[480],"class_list":["post-524","post","type-post","status-publish","format-standard","hentry","category-windows","tag-scripts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":9898,"url":"https:\/\/www.winhelponline.com\/blog\/automatically-backup-registry-hives-windows-10\/","url_meta":{"origin":524,"position":0},"title":"How to Automatically Backup the Entire Registry in Windows","author":"Ramesh","date":"June 22, 2019","format":false,"excerpt":"Every System Restore point or shadow copy maintains a complete backup of the registry hives. However, Windows 10\/11 doesn't automatically create System Restore points every day. Restore Points are created only when installing important updates or drivers. Notwithstanding the System Restore's excellent capabilities, relying upon System Restore as a file\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"backup registry daily or weekly - regidlebackup task","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/registry-backup-task-regidlebackup.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/registry-backup-task-regidlebackup.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/registry-backup-task-regidlebackup.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":31386,"url":"https:\/\/www.winhelponline.com\/blog\/windows-update-services-deleted-every-restart\/","url_meta":{"origin":524,"position":1},"title":"Windows Update services are deleted at every restart","author":"Ramesh","date":"December 30, 2022","format":false,"excerpt":"After you restore the missing Windows Update, BITS, or the Update Orchestrator Service services using registry files, you find that the services vanish again after a restart. They don't appear in the Services MMC. Cause This issue happens if your computer is infected. Malware running as a service or scheduled\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"autoruns check virus total","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/12\/autoruns-check-virustotal.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":31401,"url":"https:\/\/www.winhelponline.com\/blog\/restore-missing-delivery-optimization-service-dosvc\/","url_meta":{"origin":524,"position":2},"title":"Restore Missing Delivery Optimization Service (DoSvc)","author":"Ramesh","date":"December 30, 2022","format":false,"excerpt":"If the Delivery Optimization Service (DoSvc) is missing in the Services MMC console in Windows 10\/11, use the registry fix in this article to restore it. Restore Missing DoSvc Service Download dosvc_service.zip and extract the contents to a folder. Double-click the registry file applicable to your OS (Windows 10 or\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":277,"url":"https:\/\/www.winhelponline.com\/blog\/mapped-drives-not-seen-elevated-command-prompt-task-scheduler\/","url_meta":{"origin":524,"position":3},"title":"Mapped drives not seen from elevated Command Prompt and Task Scheduler","author":"Ramesh","date":"May 12, 2008","format":false,"excerpt":"When you attempt to access a mapped network drive from an elevated or admin Command Prompt or Task Scheduler (with the highest privileges), the mapped drive won't be available. Attempting to use the mapped network drives causes the error The system cannot find the path specified (Error code: 0x80070003). Here\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"mapped network drive not seen from admin command prompt and task scheduler","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/mapped-drives-enablelinkedconnections.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/mapped-drives-enablelinkedconnections.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/mapped-drives-enablelinkedconnections.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":5079,"url":"https:\/\/www.winhelponline.com\/blog\/automatic-maintenance-disable-schedule-windows-8-10\/","url_meta":{"origin":524,"position":4},"title":"How to Disable Automatic Maintenance in Windows 10","author":"Ramesh","date":"January 5, 2017","format":false,"excerpt":"Windows automatically runs scheduled maintenance on a daily basis when you're not using your computer. This feature is called Automatic Maintenance, which takes care of updating Windows Store apps and other software, running Windows Defender scans, system diagnostics, Disk Cleanup, etc. Besides the maintenance tasks created by Windows, third-party programs\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"Disable Automatic Maintenance","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/automatic-maintenance-disable-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/automatic-maintenance-disable-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/01\/automatic-maintenance-disable-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":5865,"url":"https:\/\/www.winhelponline.com\/blog\/thumbnail-cache-automatically-deleted-windows-maintenance\/","url_meta":{"origin":524,"position":5},"title":"[Fix] Thumbnail Cache Auto Deletion Problem in Windows 10","author":"Ramesh","date":"November 3, 2017","format":false,"excerpt":"When you browse a folder containing media files, Windows generates thumbnail images of your image and video files if the folder view is set to thumbnail view (medium, large or extra large icons.)\u00a0The generated thumbnail is cached and written to database so that the system need not regenerate the miniature\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"thumbnail cache folder","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/thumbnail-cache-location.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/thumbnail-cache-location.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/thumbnail-cache-location.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=524"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/524\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}