/build/static/layout/Breadcrumb_cap_w.png

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
2

Good grief...

http://www.computerperformance.co.uk/powershell/powershell_restart_computer.htm

 


Comments:
Posted by: jdornan 8 years ago
Red Belt
0

Lol, for the record

#powershell 
$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