Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

gpo based vbs logon script hangs

Posted on 2012-04-08
5
701 Views
Last Modified: 2012-05-09
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.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
0
Comment
Question by:cs2009
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:prashanthd
ID: 37822208
Try Changing the following line as it is set to wait for 300 Seconds

WScript.Sleep(300000) to WScript.Sleep(3000)
0
 
LVL 12

Expert Comment

by:prashanthd
ID: 37822238
This script is in a loop which keeps running all the time...
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 37822965
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.
0
 

Accepted Solution

by:
cs2009 earned 0 total points
ID: 37931920
Contacted Edgewave for support. Still didn't work.
0
 

Author Closing Comment

by:cs2009
ID: 37946028
Submitted solutions did not solve the problem.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question