X

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

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 websites.
X

Headline

You can control the ways in which we improve and personalize your experience. Please choose whether you wish to allow the following:

Privacy Settings