locked
How to run vbs with PowerShell Script RRS feed

  • Question

  • Hi everyone,

    I have a vbs script that collects some information from servers and generates some result files in .txt format. In different environments i tested the script and it totally works. I want to run this script in my remote clients from main server. After a quick search, i found that PowerShell Scripts can access remote clients from main server and run scripts.

    I'm very new to scripting but have an experience in C#, so i won't be a big problem to writing in PowerShell if you give me some guidance.

    1) How can i send my vbs script to remote clients with PowerShell. (Or can i call my vbs script without deploying it to the remote servers?)

    2) If i managed to send my script to client hosts (or as i mentioned above its possible without sending to clients), how can i run vbs script in all my client servers.

    3) If all two steps above are successfully completed, how can i collect the results in clients and send  them back to main server.

     

    If any detailed information required, please let me know so i can reply as soon as possible.

    • Changed type Bill_Stewart Monday, February 28, 2011 4:57 PM Question posted as a discussion
    Monday, February 28, 2011 2:29 PM

Answers

  • Hi,

    I think probably PsExec would work for your purposes.

    HTH,

    Bill

    • Marked as answer by IamMred Thursday, March 3, 2011 9:29 PM
    Monday, February 28, 2011 4:57 PM

All replies

  • Hi,

    I think probably PsExec would work for your purposes.

    HTH,

    Bill

    • Marked as answer by IamMred Thursday, March 3, 2011 9:29 PM
    Monday, February 28, 2011 4:57 PM
  • Is there a basic command line to launch the vbscript for this,   so it can be called for task sequences?

    Thanks


    gary pearson



    • Proposed as answer by pearson.garym Thursday, October 11, 2012 2:28 PM
    • Edited by pearson.garym Thursday, October 11, 2012 2:28 PM not an answer a question
    • Unproposed as answer by Bill_Stewart Thursday, October 11, 2012 2:57 PM
    Thursday, October 11, 2012 2:27 PM
  • Hi,

    This question is already marked as answered. If you need help, please start a new question.

    Bill

    Thursday, October 11, 2012 2:57 PM