Scripting Question

How to call a vb script from a powershell script

10/29/2012 13080 views

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


Community Chosen Answer


Good grief...



Answered 10/29/2012 by: VBScab
Red Belt

All Answers


Lol, for the record

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

Answered 11/30/2012 by: jdornan
Red Belt

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