Shortcut creator for URLs
You can use this script to create desktop shortcuts for a URL.
The shortcut can be created on the Desktop, Start Menu, Startup folder, or a combination of those. Shortcuts are installed machine wide or only for the logged in user, depending on who launches the script.
Icons are cached locally and can either be downloaded from a URL, or copied from the same folder as the script.
You can create a single shortcut by calling the script with arguments, or create one or more by using a JSON file
Set to Install
or Uninstall
The name of the JSON file, located in the same folder as the script. The value can be:
- The name of the JSON file in the same folder as the script, e.g.
MyShortcuts.json
- The full path to the JSON file, e.g.
C:\Company\Shortcuts\ThisShortcut.json
- If the value is empty, it can be
WebApp.json
or matching the name of the script, e.g. if the script is CompanyShortcuts.ps1 then the value isCompanyShortcuts.json
Set to Install
or Uninstall
The name shown for the shortcut
The website to point to, e.g. https://github.com
The location where the shortcut icon can be downloaded or copied from the same folder as the script, e.g. https://github.com/favicon.ico
or github.ico
Use this argument as is if you want to create the shortcut on the Desktop
Use this argument as is if you want to create the shortcut in the Start Menu
Use this argument as is if you want to create the shortcut in the Startup folder