Open IE Window at Login Screen
Hi All, I have a VBscript that we've been using for a couple years now in our labs. It has been working perfect in Windows XP, but no longer works in the labs that have been upgraded to Windows 7. The below VBscript is set as a startup script in group policy at "Computer Configuration > Policies > Windows Settings > Scripts (Startup/Shutdown) > Startup." Note that I've commented out the two lines that switch the focus to the login prompt as I'm assuming that's not needed in Windows 7. '================== 'VBscript to open IE at login screen, then switch focus to the login prompt 'JRL 25-Jun-08 '================== Set objExplorer = CreateObject("InternetExplorer.Application") 'Set WshShell = Wscript.CreateObject("WScript.Shell") objExplorer.Navigate "http://intranetsite.edu/lab-login/" objExplorer.Visible = true objExplorer.ToolBar = false objExplorer.MenuBar = false objExplorer.StatusBar = false objExplorer.AddressBar = false objExplorer.Width = 340 objExplorer.Height = 560 objExplorer.Left = 0 objExplorer.Top = 0 objExplorer.Resizable = false 'Wshshell.AppActivate ("Welcome to Windows") When our Windows 7 lab machines startup nothing appears. I am unsure if the script is running fine but the window is just hidden, or if the script isn't running at all. When testing the script on my Windows 7 machine (logged into Windows) if I just double click the vbs I get errors on .MenuBar, .StatusBar, and .AddressBar lines... also the .Width, .Height, .Left, and .Top lines don't seem to work. When I open a command window as administrator and run the script from there, then everything works as expected. Anybody have any ideas how to display an IE window at the Windows 7 login screen? Any assistance will be greatly appreciated! Thanks, Justin
June 21st, 2011 8:37pm

Hi Leo, The two "other methods" you provided are how to open an IE window once a user logs into Windows. My script (and what I need) opens an IE window at the login prompt, before a user logs into Windows. I will check out The Official Scripting Guys Forum! Forum and see what I can find. If anybody has any ideas/assistance let me know. Thanks! Justin
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2011 8:59am

I posted this same question in The Official Scripting Guys Forum! and found an answer. Thanks Leo for the suggestion. For future reference, I had to set two GPO settings for the above VBscript to work in Windows 7: Computer Configuration > Policies > Administrative Templates > System > Scripts > "Run startup scripts visible" set to "Enabled" Computer Configuration > Policies > Administrative Templates > System > Scripts > "Run startup scripts asynchronously" set to "Disabled" Once both were set, the web page appears at the login screen just like our XP machines. Source: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/92305c50-f6c3-4c66-872d-3f696e690f3f/ Thank You! Justin
June 23rd, 2011 3:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics