How Do I Reinstall Windows Scripting Host on Windows 10 as I cannot fix it

Matt Addison 21 Reputation points

Windows scripting host has stopped running scripts on a Microsoft Windows [Version 10.0.19043.1052] pc, even running a simple vbs script that just does a
wscript.echo "Hello World"

This is all we get with or without the debugging options /U /D /t:5

C:\Users\>cscript /U /D /t:5 test.vbs
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

I have already run SFC /scannow and even tried DISM /Online /Cleanup-Image /RestoreHealth but no luck

Event Log shows no errors

If anyone has any ideas, please let me know



Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,543 questions
{count} votes

Accepted answer
  1. Yuhan Deng 3,761 Reputation points Microsoft Vendor

    Hi Matt,
    I did some research but it seems that you’ve tried most of the recommended methods. Maybe reinstalling Windows would be the only solution.
    Also I would suggest that you contact Microsoft Customer Support and Services where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue. In addition, if the issue has been proved as system flaw, the consulting fee would be refund. You may find phone number for your region accordingly from the link below.
    Global Customer Service phone numbers:

    Thanks for your time.
    Best regards,


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful