p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Re: Remote Script Execution


Message #1 by chungw@u... on Mon, 23 Dec 2002 07:43:29
I had the same exact problem.  I think I found the answer at MSDN.  I hope 
this helps.  Here is the MSN link so you can read it yourself:

http://msdn.microsoft.com/msdnmag/issues/02/05/wsh/default.aspx
http://msdn.microsoft.com/msdnmag/issues/02/05/wsh/default.aspx


Here is the exerpt from MSN:

Enabling Windows Script Host in Win32
You can enable remote scripting in Win32-based applications as described 
in the following procedure.

To enable remote scripting 

Install Windows Script Host 5.6 on both systems. 
Change the following registry key on the remote server, where the script 
will be executed: 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings 
remote = 1 

Ensure that you have administrative rights on the target computer. 
Using Windows Script Host in Win32
After you have enabled remote scripting, pass a script to the 
WshController object's CreateScript method, provided it doesn't use any 
user interface elements such as WScript.Echo, STDIO, WshShell::Popup, 
MsgBox, InputBox and other user interface generating methods and objects.


    I think I'm the first person to answer this question since it took me 
hours to find the answer.  There were other forum postings, but none of 
them answered the question in regards to the registry setting.

    -Will

  Return to Index