To run VBScript file, follow these steps. I have tested on my Windows Server 2016 but it should run on other windows versions.

Open PowerShell or command prompt with elevated privileges.

Execute the following command:

cscript <VBScript file name>

For example, to run hello.vbs, which is located in your current working directory:

cscript hello.vbs


cscript <Full path of VBScript fie>

For example, to run hello.vbs which is not located in your current working directory:

cscript C:\Users\Administrator.\Desktop\hello.vbs

How to Run VBScript on Windows

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *