How to Run VBScript on Windows

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

or

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

Leave a Comment