cs2009
asked on
gpo based vbs logon script hangs
I was given a script by Edgewave tech that preauthenticates a user to their iprism internet filtering box. I have set it up as a logon script in a user based gpo targeted to a test user.
When i logon as the user it hangs the logon so that it requires a shutdown /r to reboot the machine.
Any ideas folks?
' 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://iprism.test.org/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.XM LHTTP")
'
' 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
When i logon as the user it hangs the logon so that it requires a shutdown /r to reboot the machine.
Any ideas folks?
' 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://iprism.test.org/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.XM
'
' 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
This script is in a loop which keeps running all the time...
It's an endless loop, so if you have logon scripts running synchronously, it will wait for the script to end (or reach the logon script timeout).
I think you'd be better off removing the Do and Loop lines, and probably even remove the wscript.sleep line.
Rob.
I think you'd be better off removing the Do and Loop lines, and probably even remove the wscript.sleep line.
Rob.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Submitted solutions did not solve the problem.
WScript.Sleep(300000) to WScript.Sleep(3000)