VBS Script to Create IE Link or Shortcut for SCCM Deployment

 

1)  Sample of VBS Script to create IE link on all users desktop.

set WshShell = WScript.CreateObject("WScript.Shell" )
strDesktop = WshShell.SpecialFolders("AllUsersDesktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "Your_Shortcut.lnk" )
oShellLink.TargetPath = " http://Server/website"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "C:WINDOWSsystem32shdoclc.dll"
oShellLink.Save

 

2)  Sample of VBS Script to create shortcuts on all users desktop.

set WshShell = WScript.CreateObject("WScript.Shell" )
strDesktop = WshShell.SpecialFolders("AllUsersDesktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "SelfService.lnk" )
oShellLink.TargetPath = "c:app_folderapplication.exe"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "c:application folderapplication.ico"
oShellLink.WorkingDirectory = "c:application folder"
oShellLink.Save

Advertisements
  1. What code are you using in the HTML for them to execute the script to save it to their desktop?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: