Hi group,
Did you already heard someting about that problem?
The goal is to monitor a HTML IHM on a remote computer from a WSH
script.
Let me explain you how these scritps are organized :
I use 3 computers located on the same LAN and on the same NT domain :
1) a W2K server from which I run the script
2) a XP Pro SP2 remote host on which is diplayed the HTML IHM
3) a 2nd server that contains all the scritps used (scripts repository)
To monitor this IHM I have separated the mains tasks into 2 importants
WSH scripts :
1) the first one (rscript.wsf) allow me to run a script on a remote
host. This is a generic and tested script. I aready used it to some
network administration tasks but there were not graphic scripts (with
HTML controls). In few words this script is based on
wscript.arguments.* objects and the method createScript of the
WSHController object.
2) the 2nd script (svgauto.wsf) is a little bit of code that allow the
remote control of the HTML IHM.
All the managed controls are located in a HTML ressource file. This
page doesn't contain scritps to get get rid of the Win XP SP2 local
scripts restriction.
When the machine from which the launcher (rscript.wsf) is executed and
the target machine where svgauto.wsf is executed are the same, all work
fine. I can get the HTML page be displayed but when I execute the
launcher on the W2K server with another computer as a target, it fails.
I could trace the execution of code with the Microsoft Script Editor's
debugger all look fine expected this line :
oIE.Visible = true (where oIE is a valid instance of Internet
Explorer).
In the 2nd scenario this line have no effect to this variable although
in the first scenario it succeed.
I use this command line to test the scripts :
wscript //D //X rscript.wsf /h "hostname"
/p:"\\RepositorySrvName\path\svgauto.wsf"
the arguments "/h" is the target hostname and "/p:" is the script
executed on the target host.
After long hours trying to understand why such a problem I have no
longer ideas.
Did you already encounter something similar ?
I can give some more details and codes if necessary.
Thanks in advance,
Nicolas