Windows Script Host Access Is Disabled on This Machine: What It Means and Safe Checks in Windows 11 and 10

Flat navy illustration of a document with a prohibition slash and a padlock
Flat navy illustration of a document with a prohibition slash and a padlock

Last reviewed: November 25, 2026. Steps were checked against Microsoft documentation where a page could be opened. The Windows Script Host overview and the DISM command reference could not be opened during this review, so those points are general guidance. None of the steps was run on a real PC. The top picture is an illustration, not a screenshot.

A Windows Script Host disabled message means Windows blocked a script file before it could run. The setting is often controlled by a work, school or security policy, so the first step is to find out who manages this PC. This guide explains the message, shows safe look-only checks for Windows 11 and 10, and tells you when to stop and ask for help.

In this guide

Quick answer

Quick fix summary

  1. Read the full message and write down the script file name.
  2. Run only scripts you trust. Never open unknown .vbs or .js files.
  3. Check whether a work, school or managed setup controls this PC.
  4. Run the look-only registry checks to see where the setting is stored.
  5. Run a Windows Security scan, then DISM, then SFC.
  6. Ask your administrator, IT team or the software maker about the script.
  7. If the script is legitimate, ask a trusted technician. Do not edit the registry yourself.

What Windows Script Host is

Windows Script Host is a built-in Windows feature that runs script files. Script files end in .vbs or .js and can automate small tasks. Windows runs them through two programs: wscript.exe, which shows results in windows, and cscript.exe, which shows results in a command window.

Many installers, logon scripts and older programs still use these files. When the feature is turned off, Windows refuses to run them and shows the message you saw. The feature itself is not a virus.

The Microsoft Learn wscript and cscript pages were opened during this review, and they match the file names and roles above. The general Windows Script Host overview could not be opened, so the remaining points are general guidance. Check them on Microsoft Learn if you need an official reference.

Why Windows Script Host disabled messages appear

There are four common reasons. Each one changes who can make the decision, so the cause matters for your next step.

  • Work or school policy. An administrator turned the feature off for a managed PC. You may not be able to change it.
  • Security baseline. Some organisations turn scripts off on purpose to lower risk.
  • A program or security tool. Some software changes this setting during install or later. This is general guidance.
  • Malware. Some malicious software changes settings. This is less common, but it is one reason a scan matters.

A home PC can also show the message. An earlier user, a family member or an old installer may have changed the setting. Read the next sections before you decide anything.

Read the whole message first

The full message names the script or program that tried to run. Note the file name, the folder and the time it happened. This detail tells you whether the script was expected.

Before you start

Do not double-click the script again to test it. Each run can repeat the risk. Note the details first, then continue with the checks below.

Sort the script into one of three groups. Your group decides the next step.

  1. Known and expected. You installed it, or your work or school IT team gave it to you. Go to the managed-PC check.
  2. Unknown. You do not know where it came from. Keep it closed and go to the scan section.
  3. From an email, download or pop-up. Treat it as high risk and do not open it. Read how to remove a virus or malware from a Windows PC before any other step.

If you already ran a file from that source, the clean-up steps after virus or adware removal explain what to review next.

Check whether the PC is managed

Work and school PCs often use policies that switch features off. To see which policies apply to this PC, read our guide to the gpresult command. Open the account settings to see whether an organisation is connected. Menu names can differ slightly by version.

SettingsAccountsAccess work or school

You should see: a list of connected work or school accounts, or a note that none is connected. If this fails: the page does not open or shows an error, so ask your IT team for help.

If you see an organisation name, do not change the PC yourself. Ask that team about the script. The guide on why some settings are managed by your organization explains what this means. If your web browser shows a similar notice, the browser policy check guide covers safe reading steps.

Look-only registry checks

Before you start

These checks only read values. They change nothing. Do not add, edit or delete any registry value. If you want background first, read how the Windows registry is organised.

In general guidance, Windows Script Host settings are stored in a Settings key. One copy applies to the current user (HKCU) and one applies to all users (HKLM). The value name is Enabled. In general guidance, a value of 0 means disabled, and a missing value means enabled.

Check the current user with Command Prompt

  1. Open Command Prompt. Select Start, type cmd, then open Command Prompt. This read does not need administrator rights.
  2. Run the current-user check. Type the command below and press Enter.
reg query "HKCU\Software\Microsoft\Windows Script Host\Settings"

You should see: a line named Enabled with a value such as 0x0 or 0x1. If this fails: an error that the key was not found usually means no value is stored at this level. Go to the next check.

If Registry Editor will not open at all, read the guide on Registry Editor not opening. You do not need that tool for these read-only commands.

Check all users with Command Prompt

  1. Run the all-users check. In the same Command Prompt window, type the command below and press Enter.
reg query "HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings"

You should see: an Enabled line with a value, or a not-found error. A 0x0 value here applies to every user. In most cases that points to a policy or an administrator, so ask them before you do anything else.

For the command-line reading steps in more depth, see how to read the registry with reg query.

Check the same values with PowerShell

PowerShell can read the same values. Open Windows PowerShell from Start and run the current-user check below. This is a read-only command.

Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows Script Host\Settings" -Name Enabled

You should see: the Enabled value, or an error that the property does not exist. A missing property means no value is stored at this level. If this fails: note the error text and move on.

Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows Script Host\Settings" -Name Enabled

You should see: the all-users value, or a missing-property error. For a step-by-step read-only guide, see how to read the registry with PowerShell safely.

PowerShell is a separate feature. The message about .vbs and .js files does not, by itself, mean PowerShell is turned off. If PowerShell also fails, ask your administrator.

Run a security scan and system file checks

Run a scan when the script is unknown or you cannot confirm where it came from. A scan does not prove a script is safe. It can still find known threats. If Windows Security itself will not open, see our guide on Windows Security not opening. For background on how malware touches the registry, see malware and the Windows registry.

Quick scan in Windows Security

  1. Open Windows Security. Select Start, type Windows Security, then open it.
  2. Start a quick scan. Select Virus and threat protection, then Quick scan.
  3. Read the result. Note any threat names and the file each one points to.

StartWindows SecurityVirus & threat protection

Menu names can differ by Windows version. You should see: a message that no current threats were found, or a list of items. If this fails: the scan does not start or shows an error. Stop here and ask your IT team or a trusted technician.

If Task Manager will not open during the scan, the guide on Task Manager not opening lists safe checks.

Offline scan for stubborn threats

Before you start

An offline scan restarts the PC. Save all open work and close programs first. Stop here if you cannot restart the PC right now.

Virus & threat protectionScan optionsMicrosoft Defender Offline scanScan now

Menu names can differ by Windows version. You should see: a notice that the PC will restart for the scan. The scan time varies, and Windows restarts the PC for the scan. If this fails: the option is missing, so install Windows updates first and try again later.

Run DISM, then SFC

Many guides run DISM before SFC, because DISM repairs the Windows image that SFC relies on. Microsoft's Repair a Windows Image page describes SFC as a quick check and DISM as the more extensive repair for component store problems, but it does not set an order, so this order is general guidance.

  1. DISM repairs the Windows image.
  2. SFC checks protected system files.
  3. Restart and test the script again.

Before you start

Open Command Prompt as administrator. DISM can need internet access and may take a long time. Do not turn off the PC during either command. Stop here if the battery is low.

DISM /Online /Cleanup-Image /RestoreHealth

You should see: a message that the operation completed successfully. If this fails: note the error code and go to the help section below.

sfc /scannow

You should see: a message that no integrity violations were found, or a message that repairs were made. If this fails: note the text. The full steps are in how to repair Windows system files with SFC and DISM.

Symptom and cause table

SymptomLikely causeWhat to check first
The message appears when a .vbs file runsThe Windows Script Host setting blocks script filesNote the file name and confirm you trust it
The message appears at work or school sign-inA work or school policyCheck the connected work or school account, then ask IT
The message appears after an older program installsThe program uses scripts that the setting blocksAsk the vendor for a current installer
The message follows an unknown email or downloadA possible malware routeDo not open the file; run a quick scan
The message appears after a security tool changeA security tool or a security baselineAsk IT or the tool's maker what changed
No clear source and no clear reasonPolicy, a program or malware; the cause is not yet knownRun the quick scan, then the look-only registry check

Decision tree

  • Is the script one you expected and trust?
    • No: do not run it. Go to the scan section.
    • Yes: go to the next question.
  • Is the PC managed by a school or work account?
    • Yes: ask the administrator or IT team. Stop here.
    • No, or not sure: go to the next question.
  • Does the all-users check show a 0x0 value?
    • Yes: the setting is likely set for every user. Ask IT. Stop here.
    • No, but the current-user check shows 0x0: ask whoever set up the PC, or the software vendor.
    • No value found: run the quick scan, then DISM and SFC.

Safe alternatives and what not to do

If the script is legitimate and you own the PC, contact the vendor. Ask for a current installer that does not depend on the blocked script. Use the program's own installer from the official maker, not a copy from another site.

Do not search for ways around the message. Avoid tools that promise a quick bypass. They can weaken security and may come from untrusted sources. If Command Prompt itself is blocked, see our guide to a command prompt disabled by an administrator message.

For a home PC where you want the feature on, the setting is a registry value. This guide gives no edit or delete steps for it. Ask a trusted technician or the vendor if the script is legitimate.

If the message is a different one about an app that cannot run, read the guide on the This app cannot run error. For background on why policy and registry values can differ, see Group Policy vs registry. If an administrator asks you to change any value, first read how to back up the registry, and do not make the change yourself unless you are authorised to do so. If registry editing itself is blocked, see why registry editing may be disabled.

When to stop and get help

  1. The PC belongs to a school or work account, and you cannot confirm the script.
  2. The script came from an email, a pop-up or an unknown download.
  3. A scan finds a threat that you cannot remove.
  4. The message blocks a program you must use, and the vendor cannot help.
  5. DISM or SFC reports an error you cannot read or fix.
  6. You notice new toolbars, strange pop-ups or unusual behaviour after a scan.
  7. You are unsure about any step in this guide.

In these cases, a trusted technician or the vendor is the right next step. If you are not sure which step fits, the Repair Assistant can help you describe the symptoms. You can also browse more walkthroughs on our PC repair guides home page.

Windows 10 note

Windows 10 support ended October 14, 2025. Consumer Extended Security Updates run until October 12, 2027, as Microsoft describes on its Windows 10 ESU page. Menu names can differ on Windows 10, so follow the labels you see on your screen.

Frequently asked questions

About the message

What does Windows Script Host access is disabled mean?

It means Windows blocked a script file because the Windows Script Host feature is turned off for this PC or for your user account. The message names no virus. It asks you to contact an administrator, which points to a policy or security setting. Read the full message to see which script ran, then decide your next step from there.

Is this message a sign of a virus?

Not by itself. A policy, a security baseline or an installer can all cause it. Malware can also change settings, so do not ignore the message when the script is unknown. Run a Windows Security scan and avoid opening any unknown .vbs or .js file. If the PC is managed, ask IT.

Can I turn Windows Script Host back on myself?

This guide does not give steps to change it. In general guidance, the setting is a registry value that a policy or administrator can control, and changing it can affect security. If the PC is yours and the script is legitimate, ask a trusted technician or the software vendor. Avoid tools that promise a quick bypass.

Does this message block PowerShell?

No, not by itself. Windows Script Host is a separate feature from PowerShell. The message concerns .vbs and .js script files. If PowerShell also fails, check it with the managed-PC steps and ask your administrator, because a policy might cover other features too.

Checks and next steps

Are the reg query commands safe to run?

Yes, when you use only the read commands shown here. They display values and change nothing. Do not add, edit or delete values from these steps. An error that the key was not found usually means no value is stored at that level, which is a normal result.

Why would a home PC have this setting turned off?

An earlier user, a family member, an installer or a program may have changed it. Some security tools and baselines also turn scripts off. Check the managed-PC step first, then run the scan. If nothing explains the change, ask a trusted technician to look at the PC.

Should I run the scan before the registry checks?

Yes, if the script is unknown or you cannot confirm where it came from. A quick scan takes little time. The registry read is also safe, but the scan gives you more protection first. Save your work before any offline scan, because it restarts the PC.

Does Windows 10 work the same way?

The message and the main idea are the same. Menu names can differ, so use the words on your screen. Windows 10 support ended on October 14, 2025. Consumer Extended Security Updates run until October 12, 2027, so enrolled PCs still receive security updates.

How this guide was checked

Steps were compared with Microsoft documentation where a page could be opened. The Microsoft Learn Windows Script Host overview and the DISM command reference could not be opened during this review, and no Microsoft page on offline scans was opened. Those points are labelled general guidance. The wscript, cscript, reg query and sfc pages, the Repair a Windows Image page and the Windows 10 ESU page were opened and used. Nothing in this guide was run on a real PC, and the menu paths were not checked on a live machine.

Sources