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:

cscipt <VBScript file name>

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

csript hello.vbs

or

csript <Full path of VBScript fie>

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

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

How to Run VBScript on Windows

Leave a Reply

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

*