Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35
  1. #21
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    26,380

    Default

    Quote Originally Posted by BOFH View Post
    Why aren't you just running it as a startup script in group policy? This works really well for us!

    BOFH
    There are some 3rd party group policy tools out there that bork it rather nicely. It only works that way if you have a plain AD.
    Rob Sandling, BS:SWE, MCP
    NexgenAppliances.com
    Phone: 866-794-8879 x201
    Email: support@nexgenappliances.com

  2. #22
    Untangler
    Join Date
    Oct 2008
    Posts
    57

    Default

    just to add my displeasure to this thread.

    We added the AD connector at a clients site yesterday (50+ users)

    For most it appears tohave worked fine, however like the rest of the people in this thread, 2 or 3 users are finding that their machine hangs shortly after login and before explorer loads.

    Disabling the logon script in the AD solves the issue instantly and the PC's logon with no issues.

    I can then check their event viewer and see this

    Event Type: Warning
    Event Source: Winlogon
    Event Category: None
    Event ID: 1217
    Date: 10/02/2010
    Time: 08:22:42
    User: N/A
    Computer: MACHINENAME
    Description:
    Execution of GPO scripts has timed out and have been terminated.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    A little help?

  3. #23
    Untangle Ninja juank's Avatar
    Join Date
    Aug 2007
    Location
    Athens
    Posts
    1,474

    Default

    I used to have the exact problem you are describing (but I am talking about UT 6.x). I fixed it changing the behavior of the AD connector script, but I don't know these days how the one distributed by Untangle looks like. Can you share your script here? I'll compare it to ours. Thanks
    --------------------------------
    Juan Machado
    --------------------------------

  4. #24
    Untangler
    Join Date
    Oct 2008
    Posts
    57

    Default

    I am going down to the customer site today to return a printer, so will grab a copy and post it here.

    I am not a VB person so any help with it would be appreciated

  5. #25
    Untangler
    Join Date
    Oct 2008
    Posts
    57

    Default

    As promised:

    Code:
    'Handle or Ignore all errors
    On Error Resume Next
    
    'Time in milliseconds to sleep between request
    SLEEP_PERIOD = 300000
    
    URL_PREFIX = "http"
    
    If WScript.Arguments.Count = 1 Then
    	ServerName = WScript.Arguments.Item(0)
    Else
    	ServerName = "192.168.0.5"
    End If
    
    'WScript.Echo "ServerName is:"
    'WScript.Echo ServerName
    
    Do While True
      Set AJAX = CreateObject("MSXML2.ServerXMLHTTP")
      Set wshShell = CreateObject("WScript.Shell")
      strUser = wshShell.ExpandEnvironmentStrings("%USERNAME%")
      strDomain = wshShell.ExpandEnvironmentStrings("%USERDOMAIN%")
      strHostname = wshShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
      command = URL_PREFIX+"://"+ServerName+"/adpb/registration?username="+strUser+"&domain="+strDomain+"&hostname="+strHostname+"&action=login"
      'WScript.Echo command
      AJAX.Open "GET", command
      AJAX.Send ""
      WScript.sleep(SLEEP_PERIOD)
      AJAX.Abort 
      Set AJAX = nothing
    Loop

  6. #26
    Untangle Ninja juank's Avatar
    Join Date
    Aug 2007
    Location
    Athens
    Posts
    1,474

    Default

    Ours is a little bit different, we modified because we had some of our developers changed the default windows file association of .vbs files.

    Before the WHILE loop we added this line:

    Code:
    Set Shell = CreateObject( "WScript.Shell" )
    and before the LOOP line:

    Code:
    ' To take care of users changing the default .vbs behavior
    Shell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.vbs\OpenWithList\" 
    Shell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.vbs\OpenWithList\a", "NOTEPAD.EXE", "REG_SZ" 
    Shell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.vbs\OpenWithList\MRUList", "a", "REG_SZ"
    If you have the AD connector means you have support, right? I recommend you to call Untangle support or test my modified script in a test environment.
    --------------------------------
    Juan Machado
    --------------------------------

  7. #27
    Untangler Xhen's Avatar
    Join Date
    Feb 2009
    Posts
    42

    Default

    to solve the probelm with CMD console I have used this tool:
    http://www.codejacked.com/create-exe...xtra-software/

    It works for me
    _________________________
    Microsoft Certified Systems Engineer
    Microsoft Certified system Administrator: Messaging

  8. #28
    Master Untangler neiby's Avatar
    Join Date
    Jun 2009
    Location
    Denver, CO
    Posts
    603

    Default

    One of our guys took the AD logon script, cleaned it up a bit, and then used Visual Studio to convert it into an EXE that we can run at startup. That should avoid the weird login issues created by the script. We're testing it now and it seems to work great.
    Disclaimer: I may or may not have had enough coffee when I'm posting. Interpret my responses thusly.

  9. #29
    Newbie
    Join Date
    Jun 2010
    Posts
    5

    Default

    Seems Like I need help
    I have set
    ComputerConf > Admin Templates > System > Scripts
    - Run logon scripts synchronously = I have disabled
    - Run startup scripts asynchronously = I have enabled
    and
    UserConf > Admin Templates > System > Scripts
    - Run logon scripts synchronously = I have disabled

    The script is the standard script:-

    Handle or Ignore all errors
    On Error Resume Next

    'Time in milliseconds to sleep between request
    SLEEP_PERIOD = 300000

    URL_PREFIX = "http"

    If WScript.Arguments.Count = 1 Then
    ServerName = WScript.Arguments.Item(0)
    Else
    ServerName = "172.16.143.254"
    End If

    'WScript.Echo "ServerName is:"
    'WScript.Echo ServerName

    Do While True
    Set AJAX = CreateObject("MSXML2.ServerXMLHTTP")
    Set wshShell = CreateObject("WScript.Shell")
    strUser = wshShell.ExpandEnvironmentStrings("%USERNAME%")
    strDomain = wshShell.ExpandEnvironmentStrings("%USERDOMAIN%")
    strHostname = wshShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
    command = URL_PREFIX+"://"+ServerName+"/adpb/registration?username="+strUser+"&domain="+strDomain+"&hostname="+strHostname+"&action=login"
    'WScript.Echo command
    AJAX.Open "GET", command
    AJAX.Send ""
    WScript.sleep(SLEEP_PERIOD)
    AJAX.Abort
    Set AJAX = nothing
    Loop


    but it is still taking 20 minutes + for users to logon.
    I know If I have a the file in the startup menu It will run fine but I have neither the time nor inclination to do this on 40+ machines.

    Also the users who's script timed out are now no longer logged onto untangle....this is beginning to do my head in.

    If anyone has any ideas how to fix this that would be great.
    Last edited by RABST; 06-11-2010 at 03:37 AM. Reason: Added Extra Info

  10. #30
    Master Untangler neiby's Avatar
    Join Date
    Jun 2009
    Location
    Denver, CO
    Posts
    603

    Default

    One of our guys cleaned up the script and converted it to an EXE, then rolled it out to everyone's startup folder. That seems to work well. He even added a systray icon so that we know the script is running. If you have the tools to do that, give something like that a try.
    Disclaimer: I may or may not have had enough coffee when I'm posting. Interpret my responses thusly.

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2