Logon script – Adding a shortcut to the desktop

DIM oShell
DIM oShellLink

    set oShell = CreateObject("WScript.Shell")
    set oShellLink = oShell.CreateShortcut(oShell.SpecialFolders("Desktop") & "\Filename.lnk")
      oShellLink.TargetPath = "https://yourwebsitehere.com"
      oShellLink.IconLocation = "%SystemRoot%\system32\SHELL32.dll,86" 'Favourites icon
      oShellLink.Description = "Website Name Here"
    oShellLink.Save
Logon script – Adding a shortcut to the desktop was last modified: February 21st, 2017 by tabcom