Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issues with SP2 in IE?

Status
Not open for further replies.

SalvaC

Technical User
Sep 9, 2003
12
DE
I have a login script that displays a HTML-File in IE during the progress of the Login-Script. Unfortunately when it starts the pop-up-blocker and the ActiveX blocker in IE6 in XP SP2 blocks the script.

Here the code in question:

Set IE = CreateObject("InternetExplorer.Application")
With IE
.navigate Path & "logon.htm"
.resizable=0
.height=420
.width=350
.menubar=0
.toolbar=0
.statusBar=0
.FullScreen=True
.visible=1
End With

Do while ie.Busy
' wait for page to load
Wscript.Sleep 100
Loop

LogonServer = WshShell.ExpandEnvironmentStrings("%LOGONSERVER%")

WSID = WSHNetwork.ComputerName
DOMAIN = WshNetwork.UserDomain
sUsername = WSHNetwork.UserName

ie.document.all.Msg1.InnerText = strUser
ie.document.all.Msg3.InnerText = WSID
ie.document.all.Msg4.InnerText = Domain
ie.document.all.Msg5.InnerText = LogonServer

The Path Variable points to a local directory for testing purposes but in the end it will point to a network share.

The html file will display but then nothing happens. After enabled the toolbar and disables the fullscreen I saw that the pop-up blocker and the ActiveX Blocker blocks something from the script.

After inserted a MsgBox "Waiting" in the ie.Busy Loop I saw that it waits forever.

Does anyone have an idea how I can solve this?

Cheers
Salvatore
 
you will need to mess with the users IE security setting, i think you will need to modify the ie zone settings so that it considers your server locations to be LocalZOnes and thus safe....i think
 
OK, after I added the following line before the End With the script proceeds:
On Error Resume Next
do 'occasionally IE still won't be ready
err.clear
set pDocument = .document
loop while err
On Error Goto 0

But the Blocker remains active. Iv'e managed with a MsgBox before I continue the script so that I can allow whatever it needs, but the problems remains.

mrmovie, thank for your tip. I think too that there is something to do with the security settings, but I couldn't manage to add c:\Temp\LoginNew to a Security Zone in IE. So I have to disable these security tools at the beginning of the script and reactivate it at the end.

Does anyone have an idea how to accomplish this?

Cheers
Salvatore
 
Does anyone have an idea how to accomplish this
Unfortunately for the hackers it's not possible (I hope).

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\

also you might consider HKLM

if you want to add to the zonemaps
 
OK, I've found some informations through the web and with the help of Regmon from sysinternals (Disable the Pop-Up Blocker:
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\New Windows\PopupMgr", "no", "REG_SZ"
Reenable with
WshShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\New Windows\PopupMgr", "yes", "REG_SZ"
[smile2]

I've found something for disable the Localmachine Lockdown feature through the registry, but I have to test it before I will publish it here.

Anyway thanks for all help until now.

Cheers
Salvatore
 
OK, I've found the solution:
Turn off the IE6 SP2 LOCALMACHINE_LOCKDOWN Feature:
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN]
"iexplore.exe"=dword:00000001

Change the iexplore.exe Value to 0 and all works.

Cheers
Salvatore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top