
Type the following command at a command prompt: mshta.exe http://WebServer/HTARepro/Default. The second - check your permissions before running any scripts.

The first reason may be related to the antivirus or your organizations security policy. Make sure that you have enabled anonymous access to the contents of the HTARepro virtual directory. Still, I will try to provide you with several tips that can help solve the problem. Place the two files, Default.hta and Main.htm, in a virtual directory that is named HTARepro on a Web server. Use Notepad to create a text file that is named Main.htm.Īdd the following HTML code to the Main.htm file: Use Notepad to create a text file that is named Default.hta.Īdd the following HTML code to the Default.hta file: In the Address box, type the path to the automatic configuration script. Make sure that none of the other check boxes are selected. In the Local Area Network (LAN) settings dialog box, click to select the Use automatic configuration script check box. On the Connections tab, click LAN Settings. On the Tools menu, click Internet Options.

