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:
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.