Sunday, February 9, 2014

Citrix/RDS: Publish Internet Explorer without Address Bar

Publishing IE for a web application without address bar is easier than you think. Simply publish the following VBScript or PowerShell script to launch IE without address bar and go to specific intranet website.

Copy either one of the script into Notepad and save as LaunchIE.vbs for vbscript OR LaunchIE.PS1 for PowerShell. Change the website address in the script. Run the script to make sure it works as you expected. Publish the script in Citrix or RDS.

Here is the VBScript Code. You can download this script from here: http://sdrv.ms/1cijdke

'
' Script: LaunchIE.vbs
' Purpose: Launch IE without Address bar with the given website
' Written by: Anand Venkatachalapathy
'
'
' Note: Replace your own webstie below in 12th line
'
Dim objIE
Set objIE = WScript.CreateObject ("InternetExplorer.Application")
objIE.Toolbar = false    'Turning off the tool/address bar
objIE.Navigate "
http://anandthearchitect.com"
objIE.Visible = true
'
' End of Script
'

Here is the PowerShell Code. Download the script from here: http://sdrv.ms/1cijnYN

#    __                           __       __________
#   / /   ____ ___  ______  _____/ /_     /  _/ ____/
#  / /   / __ `/ / / / __ \/ ___/ __ \    / // __/  
# / /___/ /_/ / /_/ / / / / /__/ / / /  _/ // /___  
#/_____/\__,_/\__,_/_/ /_/\___/_/ /_/  /___/_____/  
#
# Launch IE without Tool bar and Address bar                                                   
# Written by: Anand the Awesome Venkatachalapathy
#
# Replace your website on next line
$site = "
http://anandthearchitect.com"

#Get IE Application object
$ie = New-Object -ComObject "InternetExplorer.Application"

#Hide Address Bar and Tool Bar
$ie.AddressBar = $false
$ie.ToolBar = $false

#Launch the IE with the specified website address
$ie.Navigate($site)

#
#-*-*-*-*-*-*-*-*-*-*- The End *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

No comments:

Post a Comment

Followers

hit counter