In Windows Script Host, is it possible to pass a value from the remote script back to the controller script?

335 pts.
Tags:
Controller script
Remote script
Windows Script Host
Windows scripting
I have a question regarding Windows Script Host remote script process. I am trying to execute a script on a remote computer and return the results of that script to the controller script. For example, if I execute the script below on a remote computer, I would like to return the value of curDomainUser to the controller script on the computer that I execute the remote script from. Is it possible to pass a value from the remote script back to the controller script? Script Code Dim objShell, curDomainUser Set objShell = WScript.CreateObject("WScript.Shell") curDomainUser = objShell.ExpandEnvironmentStrings("%USERDOMAIN%") &_ "" & objShell.ExpandEnvironmentStrings("%USERNAME%") 'Would like to return curDomainUser to controller script. WScript.Echo curDomainUser -------------------------------------------------------------------------------------------------------------------------------------------------------- Thanks for your time!
ASKED: September 17, 2008  7:46 PM
UPDATED: September 17, 2008  7:57 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following