 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; Remote script</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/remote-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 15:36:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>In Windows Script Host, is it possible to pass a value from the remote script back to the controller script?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/in-windows-script-host-is-it-possible-to-pass-a-value-from-the-remote-script-back-to-the-controller-script/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/in-windows-script-host-is-it-possible-to-pass-a-value-from-the-remote-script-back-to-the-controller-script/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 19:46:35 +0000</pubDate>
		<dc:creator>WindowsServerATE</dc:creator>
				<category><![CDATA[Controller script]]></category>
		<category><![CDATA[Remote script]]></category>
		<category><![CDATA[Windows Script Host]]></category>
		<category><![CDATA[Windows scripting]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[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 [...]]]></description>
				<content:encoded><![CDATA[<p>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.</p>
<p>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?</p>
<p>Script Code<br />
Dim objShell, curDomainUser</p>
<p>Set objShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)<br />
curDomainUser = objShell.ExpandEnvironmentStrings(&#8220;%USERDOMAIN%&#8221;) &#038;_<br />
                               &#8220;&#8221; &#038;<br />
objShell.ExpandEnvironmentStrings(&#8220;%USERNAME%&#8221;)</p>
<p>&#8216;Would like to return curDomainUser to controller script.<br />
WScript.Echo curDomainUser<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Thanks for your time!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/in-windows-script-host-is-it-possible-to-pass-a-value-from-the-remote-script-back-to-the-controller-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/12 queries in 0.021 seconds using memcached
Object Caching 321/330 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 16:41:58 -->