***************************************************
' Iprism Logon Script
'
' This script is intended to run on end-user workstations. Its purpose is to
send HTTP-GET requests
' to iPrism. These requests inform iPrism of the exact time of when a user
has logged on to a workstation,
' and will also let the iPrism know that the user is still logged on to a
workstation over periods of time.
' By interpreting the HTTP-GET requests and the workstation IP address,
iPrism will know the username from
' each workstation from initial logon until final logoff.
'
' URL of iPrism
URL="http://10.243.220.2:80/auth-bin/nph-xauth?URL=null"
'
' Creates the 'xml' object, used to send the HTTP-GET requests to the iPrism
URL
Set xml = CreateObject("Microsoft.XMLHTTP")
'
' Entry point to the Loop, contents of which are executed after every sleep
do
'
' COnfigures the 'xml' object to the iPrism URL
xml.Open "GET", URL, False
'
' Actually Sends the HTTP-GET request and returns the data:
xml.Send
'
' Tells the loop to sleep, in milliseconds
WScript.Sleep(300000)
'
' Tells this script to loop, starting with the 'do'
loop
*************************************************
The script attempts to run on the machines when the users login however,
all the users are getting an error that says the following:
_____________________________________________________
Script:
\\path\....\.....
Line: 22
Char: 3
Error: Access is denied.
Code: 80070005
Source: MSXML3.dll
_____________________________________________________
Any help would be greatly appreciated.
Is line 22 the following line?
xml.Send
Perhaps users don't have permission.
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
We are having the same issues with some of our users. For our XP users,
resetting the IE security settings to default seemed to fix it.
We are still getting the error on our servers though.
Anyone else know more about Microsoft.XMLHTTP?
It just might also help to try the more recent MSXML2.XMLHTTP object
in place of the older Microsoft.XMLHTTP. Don't know, just a
suggestion, not sure why it might help. The methods and calls for
the two are the same as far as this application is concerned.
Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/