Cannot find script file windows 10
In today’s post, we will attempt to resolve the issue as it relates to the error message Can not find script file C:\WINDOWS\run.vbs at logon in Windows 10. This Windows Script Host is shown, in a blank screen with a black background. This happens if malware has modified the Userinit registry value, replacing the Windows default value data with a VBScript filename.
Userinit.exe is the file responsible for executing logon scripts, reestablishing network connections and then starting Explorer.exe, and is a safe file for your PC. Winlogon is an essential component of the Windows series of operating systems that handle the secure loading of a user profile at the time of login.
Can not find script file run.vbs
You can encounter a black screen when trying to log in to the computer as the malicious program manipulates Userinit registry value and changes Windows default value data with Vbscript filename. Since this virus deletes or moves the .vbs file from the common System32 folder, users receive the error as shown above.
Usually, malware causing the issue spreads via spam email attachments, Peer-to-Peer (P2P) networks or malvertising – infecting computer users who tend to download music or movies illegally, click on suspicious online ads, or open spam emails.
It’s noteworthy that malware which is leading to “Can not find script file C:\Windows\run.vbs” error can be programmed to perform other malicious actions on your system, including the following:
- Logging keystrokes
- Infiltrating potentially unwanted programs (PUPs) or malware
- Creating a backdoor by connecting the PC to the remote server.
There are two ways to fix “Can not find script file C:\Windows\run.vbs” error on Windows 10, viz:
1. Edit the Userinit registry value
2. Change the Registry value of .vbs key
These two methods can help you fix the run.vbs error fix and thereby regaining access to your user profile.
Before you begin, it’s recommended, you run a full system antivirus scan with Windows Defender or any reputable third-party AV product.
Now, to proceed with the registry tweak solution, you’ll first need to backup the registry or create a system restore point in case the procedure goes south.
Once you have done either of the actions, you can now begin as follows;
1] Edit the Userinit registry value
After typing the login credentials, the system may stall at Preparing to log in screen. Press CTRL+ALT+DEL, and click Task Manager (if Task Manager doesn’t open due to DisableTaskMgr Policy enabled by the malware, you’ll need to edit the registry offline via Windows Recovery Environment).
When the above error message dialog is visible, dismiss the dialog and switch to the Task Manager window. The file referenced in the Userinit registry value is run even before the user interface loads. To start the Explorer shell, switch to the Task Manager window, click File, and select Run new task. Type explorer.exe and hit Enter.
Navigate to the following registry key:
Double-click on Userinit item.
Change the value data from
Click OK.
Take special care when entering. You need to remove the wscript part. And also include the trailing comma (,) as shown above. Typing an incorrect filename or path will prevent you from logging on to any user account.
Log off and log in again.
Check to see if the run.vbs issue is resolved.
2] Change the Registry value of .vbs key
Launch Registry Editor
Navigate to the following registry key:
Double-click Default value.
Cannot find script file
I have Windows 10. I ran a virus scan with McAfee. I am now getting an error message every few minutes
Cannot find script file » C:\users\user\appData\local\temp\UBJA5VF2F3.wSf «
I have run sfc /scannnow which did not find any integrity violations.
Any recommendations on how to stop the error message?
***Post moved by the moderator to the appropriate forum category.***
Replies (17)
* Please try a lower page number.
* Please enter only numbers.
* Please try a lower page number.
* Please enter only numbers.
When you ran your Anti-Virus software, it deleted some of the temporary files in your temporary folder in Windows 10. Your software found possible harmful files and have deleted them as prevention.
We would like to know if you’re receiving the error when opening an app or when opening a file? This is to know what kind of troubleshooting steps should be given to resolve this issue.
We await for your answers.
26 people were helped by this reply
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
It keeps popping up even when the system is in wait state.
Not connected to any specific actions.
I have disabled the file in the startup menu.
That does not help
2 people were helped by this reply
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
May we know what are the name of the apps that are affected by the issue?
We’ll be waiting for your update.
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
It keeps popping up even when no application is running.
The most probable is » Microsoft Edge» but cannot be sure
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.
We recommend performing a clean boot. This will run Windows on a minimal set of drivers and start-up programs which will help us to check if the error is associated with a 3rd party program. Here is an article for the instructions on how to perform a clean boot.
We also recommend doing a Disk cleanup to make sure that there are no traces of any files that may cause errors. Here is an article for instructions.
Let us know how it went for you.
Did this solve your problem?
Sorry this didn’t help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
Cannot find script file windows 10
In today’s post, we will explain what the HPAudioswitchLC.vbs script is and then attempt to resolve the issue as it relates to the error message Cannot find script file HPAudioswitchLC.vbs at startup in Windows 10.
HPAudioSwitchLC.vbs is not essential for the Windows OS and causes relatively few problems. HPAudioSwitchLC.vbs is located in:
The file size is 249 bytes. The application has a visible window and can be closed by clicking the red ‘x’ button. There is no description of the program. The process starts upon Windows startup via Registry key HKLM\User Shell Folders . It is not a Windows system file.
Furthermore, HPAudioSwitchLC.vbs appears to be a file that was compressed by an EXE-Packer. This technique is often used by trojans to keep the file size small and also hamper debugging efforts. However, this in itself is not sufficient reason to presume malicious intent, since even well-intentioned, professional software producers take advantage of compressed files. For this reason, 66% of all experts consider this file to be a possible threat. The probability that it can cause harm is high.
If you see this file on your hard drive or in Windows Task Manager, please make sure that it is not a malicious variant. Run a full in-depth antivirus scan. It’s a fact that many trojans try to cloak their true identity by calling themselves HPAudioSwitchLC.vbs.
Cannot find script file HPAudioswitchLC.vbs at startup
When you start up your Windows 10 PC, you might encounter this Cannot find script file issue. An obsolete or defective version of HPAudioSwitchLC.vbs can cause problems for your computer that can range from slowness to error messages such as these:
HPAudioSwitchLC.vbs has stopped working. Windows is checking for a solution to the problem.
HPAudioSwitchLC.vbs has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
HPAudioSwitchLC.vbs has encountered a problem and needs to close.
Access violation at address FFFFFFFF in module HPAudioSwitchLC.vbs. Read of address 00000000.
Best practices for resolving HPAudioSwitchLC.vbs issues
If you’re experiencing this issue, you can try our recommended solutions listed below in no particular order.
Now, let’s take a look at the brief description of these solutions.
1] Run an antivirus scan
To be on the safe side, since the HPAudioSwitchLC.vbs file can be exploited or masked to be a virus, we suggest you run a full system AV scan with Windows Defender or any reputable third-party AV product.
2] Run Disk Cleanup
A clean and tidy computer is the key requirement for avoiding problems with HPAudioSwitchLC. This means cleaning your hard drive using the Windows 10 in-built Disk Cleanup utility or a third-party tool like CCleaner.
3] Uninstall the program
Uninstalling programs that you no longer need, checking for autostart programs using msconfig could resolve this issue.
It should be noted that the HPAudioSwitchLC.vbs process is also known as HPAudioSwitchLC.vbs and is a part of HP Audio Switch. This software is produced by ‘Unknown’. You should try uninstalling HP Audio Switch.
After uninstalling, restart your computer.
Then launch File Explorer and see if there is still a folder with the name of the software under C:\Program Files. Delete it if you see it.