locked
Sript For Internet Explorer RRS feed

  • Question

  • Hi All,


    I Have 2003 domain controller

    i want when user log on they get only internet explorer and it start automatically at start up.

    if user close internet explorer than user log off automatically


    kindly gide me how to configure it ???

    is there any script for this ???
    Wednesday, January 13, 2010 7:19 AM

Answers

  • Hey

    This might be useful for you...

    http://support.microsoft.com/kb/314488

    You can configure group policy to start IE at user logon but why log them off if they close the application? I'd imagine your going to get a lot of unhappy calls to your service desk for doing that!

    Cheers Matt :)
    • Marked as answer by IamMred Friday, January 22, 2010 8:39 AM
    Wednesday, January 13, 2010 8:02 AM
  • All the users can do is minimise IE and do whatever they want, but this script will start IE and when it's closed force a logoff.
    You might need to check which user rights are needed though to run this....

    	' Start Internet Explorer
    Set objShell = CreateObject("Wscript.Shell")
    objShell.Run "iexplore.exe",3,true
    
    	' when finished....
    strComputer = "."
    Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _
            strComputer & "\root\cimv2")
    Set colOS = objWMI.ExecQuery("Select * from Win32_OperatingSystem")
    
    	' force logoff
    For Each objOS in colOS
        objOS.Win32Shutdown(0+4)
    Next
    • Marked as answer by IamMred Friday, January 22, 2010 8:39 AM
    Wednesday, January 13, 2010 4:43 PM

All replies

  • Hey

    This might be useful for you...

    http://support.microsoft.com/kb/314488

    You can configure group policy to start IE at user logon but why log them off if they close the application? I'd imagine your going to get a lot of unhappy calls to your service desk for doing that!

    Cheers Matt :)
    • Marked as answer by IamMred Friday, January 22, 2010 8:39 AM
    Wednesday, January 13, 2010 8:02 AM
  • All the users can do is minimise IE and do whatever they want, but this script will start IE and when it's closed force a logoff.
    You might need to check which user rights are needed though to run this....

    	' Start Internet Explorer
    Set objShell = CreateObject("Wscript.Shell")
    objShell.Run "iexplore.exe",3,true
    
    	' when finished....
    strComputer = "."
    Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _
            strComputer & "\root\cimv2")
    Set colOS = objWMI.ExecQuery("Select * from Win32_OperatingSystem")
    
    	' force logoff
    For Each objOS in colOS
        objOS.Win32Shutdown(0+4)
    Next
    • Marked as answer by IamMred Friday, January 22, 2010 8:39 AM
    Wednesday, January 13, 2010 4:43 PM