Run VB Script in Server

Hi,

You can create a powershell script using Notepad but use a filetype as .ps1

The script will be like the above that I posted, but you may need the full filepaths.

invoke-expression "c:\windows\system32\cmd.exe /C c:\windows\system32\cscript.exe 'filepathofscript.vbs'"

You can also add arguments to be used in the script, but I can’t say I’m an expert; there is resources online on how to do use variables in powershell and pass them to .vbscripts though.

Hope that helps better.

Thanks.