Saturday, May 17, 2008

[vbscript] Programmatic IE Launch

As a Citrix admin I find keeping my Internet Explorer published applications clean and locked down. Sometimes less is better. I find launching IE toolbar and addressbar free makes for a much cleaner published application. For most sites (or should I say most users) this works very well in a corporate environment.

Simply substitute your URL, save the file somewhere on your Citrix server [name.vbs] and publish the following application:

%systemroot%\system32\wscript.exe [path to vbfile]\[name].vbs

Dim oIE
Set oIE=WScript.CreateObject("InternetExplorer.Application")

oIE.Toolbar=false
oIE.AddressBar=false
oIE.Navigate("http://dhcollier.com")
oIE.Visible=True
set oIE = Nothing



You might also want to disable [ctrl]-O as well as any other IE hot-keys you wouldn't want users accessing as well.

1 comment:

  1. hi

    the information provided is good but i would like to know how to launch multiple IE's using vb script.

    ReplyDelete