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://channels.morainepark.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 1:43pm

Hi, I suggest to contact Script Forum to check if the script has problem: The Official Scripting Guys Forum! Forum Furthermore, there are some other methods to start IE when login: 1 Create IE shortcut and put it to Start---Programs---Startup 2 Use a GP to add a registry entry, it'll have to be in HKLM->Software->Microsoft->Windows->CurrentVersion->Run Thank you for your understanding. Regards, Leo Huang Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2011 4:08am

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

Other recent topics Other recent topics