How to call a vb script from a powershell script

I need to reboot my computer after i install the application. So need to know as how to call a reboot.vbs from powershell script, after application installation is done.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 8 years ago
Red Belt

Good grief...



Posted by: jdornan 8 years ago
Red Belt

Lol, for the record

$args = "-count 5 -server hostname" 
$command = cmd /C cscript c:\windows\myvbscript.vbs $args 
invoke-item $command 

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ