/build/static/layout/Breadcrumb_cap_w.png

Vb in powershell

How to call a vbscript in powershell. I tried a few that works manually but through SCCM it does not execute the vbscript.


Thanks





0 Comments   [ + ] Show comments

Answers (5)

Posted by: anonymous_9363 8 years ago
Red Belt
0

It's pretty poor etiquette to post the same question when you've not received the answer you want to a previous post.

So why on God's green Earth would you need to run a VBS from a Powershell script? It would be better to translate the VBS to Powershell.


Comments:
  • Why not, I do it all the time... along with cauterizing my paper-cut wounds in salt, washing them with vinegar and drying the tears from my eyes with a handkerchief soaked in onion essence... - Pressanykey 8 years ago
  • Well, I posted it again because, it said the post is hidden from public view considering it a spam. Assuming public wont be able to see, I reposted it again. And thanks for answering, I can translate to powershell, I wanted to try calling the vbs. If there is an option why not use it :) - shamu 8 years ago
    • You dual posted so I removed the other one, your original post is still there... - rileyz 8 years ago
Posted by: anonymous_93791 8 years ago
White Belt
0

SCCM handles VB Scripts no problem. Check the specifics of your script, also ensure that your command line within SCCM Application/Package has cscript or wscript preceding your script name.



Comments:
  • Thank you.. I did use cscript.exe $Path\Uninstall.vbs - shamu 8 years ago
Posted by: flip1001 8 years ago
Black Belt
0
invoke-expression "cscript script.vbs"
Posted by: anonymous_9363 8 years ago
Red Belt
0
>if there is an option why not use it :)
Using that argument coupled with the fact that you're calling a script that (presumably) uninstalls something...see here!
Posted by: shamu 8 years ago
Senior Purple Belt
0
 I went a ahead and did the supercedence in the SCCM itself.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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