{"id":25132043,"url":"https://github.com/crookm/ps-advanced-shortcut","last_synced_at":"2026-05-05T23:32:57.996Z","repository":{"id":103748488,"uuid":"298699437","full_name":"crookm/ps-advanced-shortcut","owner":"crookm","description":"Create shortcuts with properties not normally available to mere mortals...","archived":false,"fork":false,"pushed_at":"2026-04-17T11:50:00.000Z","size":50,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-04-17T12:35:37.789Z","etag":null,"topics":["powershell","powershell-module","windows"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crookm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-25T23:26:48.000Z","updated_at":"2026-04-08T07:51:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"762f3201-13f9-40f9-928e-489447df7725","html_url":"https://github.com/crookm/ps-advanced-shortcut","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/crookm/ps-advanced-shortcut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crookm%2Fps-advanced-shortcut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crookm%2Fps-advanced-shortcut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crookm%2Fps-advanced-shortcut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crookm%2Fps-advanced-shortcut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crookm","download_url":"https://codeload.github.com/crookm/ps-advanced-shortcut/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crookm%2Fps-advanced-shortcut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","powershell-module","windows"],"created_at":"2025-02-08T14:16:29.423Z","updated_at":"2026-05-05T23:32:57.991Z","avatar_url":"https://github.com/crookm.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSAdvancedShortcut\n\n[![PowerShell Gallery Downloads](https://img.shields.io/powershellgallery/v/PSAdvancedShortcut?logo=powershell\u0026logoColor=aaa\u0026style=flat-square) ![PowerShell Gallery Downloads](https://img.shields.io/powershellgallery/dt/PSAdvancedShortcut?logo=powershell\u0026logoColor=aaa\u0026style=flat-square) ![PowerShell Gallery Platform](https://img.shields.io/powershellgallery/p/PSAdvancedShortcut?logo=powershell\u0026logoColor=aaa\u0026style=flat-square)](https://www.powershellgallery.com/packages/PSAdvancedShortcut)\n\n## Background\n\nPSAdvancedShortcut is a tool to allow the creation of shortcut files on Windows machines. Its purpose is to make the powerful hidden properties of shortcuts easy to set, in a programmatic way.\n\nSome of the properties that can be set include:\n\n- Target\n- Arguments\n- Working directory\n- Description\n- Window launch style\n- Icon (including index offset)\n- Application user model ID (AUMID)\n- Toast activator class ID\n\n## Installation\n\nYou can install [PSAdvancedShortcut](https://www.powershellgallery.com/packages/PSAdvancedShortcut) via the Powershell Gallery:\n\n```powershell\nInstall-Module -Name PSAdvancedShortcut\n```\n\n## Documentation\n\n### New-Shortcut\n\nCreates a new shortcut with the desired properties.\n\n```powershell\nNew-Shortcut\n    -Name \u003cstring\u003e\n    -Target \u003cstring\u003e\n    [-Arguments \u003cstring\u003e]\n    [-Path \u003cstring\u003e]\n    [-Description \u003cstring\u003e]\n    [-WorkingDirectory \u003cstring\u003e]\n    [-WindowStyle \u003cWindowStyle\u003e]\n    [-IconPath \u003cstring\u003e]\n    [-IconIndex \u003cint\u003e]\n    [-Hotkey \u003cstring\u003e]\n    [-AppUserModelId \u003cstring\u003e]\n    [-ToastActivatorClassId \u003cGuid\u003e]\n    [-Force]\n    [\u003cCommonParameters\u003e]\n```\n\n#### Examples\n\nCreate a simple shortcut named `MyShortcut` in the current directory, targeting the calculator:\n```powershell\nNew-Shortcut -Name MyShortcut -Target calc.exe\n```\n\nCreates a shortcut on the desktop called `MyDesktopShortcut`, targeting the calculator:\n```powershell\nNew-Shortcut -Name MyDesktopShortcut -Path ~\\Desktop -Target calc.exe\n```\n\nCreates a shortcut in the current directory named `TreeCalc` with a tree icon, targeting the calculator:\n```powershell\nNew-Shortcut -Name TreeCalc -Target calc.exe -IconPath C:\\Windows\\System32\\SHELL32.dll -IconIndex 41\n```\n\n#### Parameters\n\n##### `-Name`\nThe name of the shortcut. Will automatically append `.lnk` if not included - but note that the file extension is always hidden by the OS. If a shortcut by this name already exists in the directory, you must specify `-Force` to replace it.\n\n##### `-Target`\nThe executable or shell destination of the shortcut.\n\n##### `-Arguments`\nArguments to pass into the target.\n\n##### `-Path`\nThe directory to create the shortcut under. The directory must exist and be writable.\n\n##### `-Description`\nA string that describes the shortcut. This will be displayed when the user hovers over the shortcut icon.\n\n##### `-WorkingDirectory`\nSpecifies the directory that the target should be launched under.\n\n##### `-WindowStyle`\nThe style of the window that the target should open in. The acceptable values are `Normal`, `Maximized`, and `Minimized`. Note that this does not work for all applications.\n\n##### `-IconPath`\nThe full path to a file which contains an icon. This is usually a .ico file, but may also include .icl, .exe, and .dll files.\n\n##### `-IconIndex`\nIcon files, as well as binaries, may contain multiple icons. You can specify the offset with this parameter. The index starts at zero.\n\n##### `-Hotkey`\nA `+`-delimited string specifying the keyboard shortcut that will activate this shortcut. Case-insensitive. Valid modifiers are `Ctrl`, `Alt`, and `Shift`. Valid keys are `A`-`Z`, `0`-`9`, and `F1`-`F24`. Example: `\"Ctrl+Alt+T\"`, `\"Ctrl+Shift+F5\"`.\n\nNote that Windows only activates shortcut hotkeys for `.lnk` files placed on the Desktop or in the Start Menu Programs folder (including subfolders). A warning will be emitted if the shortcut is being saved elsewhere. A sign-out/sign-in or Explorer restart may be required for the hotkey to take effect after creation.\n\n##### `-AppUserModelId`\nThe AUMID to set for this shortcut. The format typically follows Java's [package name rules](https://docs.oracle.com/javase/specs/jls/se6/html/packages.html#7.7), but can be any string. This only applies to Windows 8 and above.\n\n##### `-ToastActivatorClassId`\nSpecifies the GUID for the registered COM class which will be activated when a user clicks on a notification in the Action Center from your application. This only applies to Windows 8 and above.\n\n##### `-Force`\nSpecifies that an existing shortcut should be overwritten.\n\n#### Inputs\n\nNone\n\n#### Outputs\n\nNone\n\n---\n\n### Find-Shortcut\n\nFinds a shortcut that links to the specified target, within a specified directory.\n\nNOTE: This cmdlet does not currently work on Windows 7\n\n```powershell\nFind-Shortcut\n    -Target \u003cstring\u003e\n    [-Path \u003cstring\u003e]\n    [-Recurse]\n    [\u003cCommonParameters\u003e]\n```\n\n#### Examples\n\nFind the shortcut files which target the calculator:\n```powershell\nFind-Shortcut -Target C:\\Windows\\System32\\calc.exe\n```\n\n#### Parameters\n\n##### `-Target`\nThe absolute path of the target you wish to find shortcuts for.\n\nNote that if you created a shortcut with a non-absolute path to a target, the OS will fill-in the rest of the path to become absolute at creation time. You will not, for example, be able to find any shortcuts which target `calc.exe`.\n\n##### `-Path`\nThe directory which should be searched to find shortcuts. Defaults to the current directory. The directory must exist.\n\n##### `-Recurse`\nRecursively search into subdirectories, including network drives and symbolic links.\n\n#### Inputs\n`string`\n\nA string representing the full path to the target may be supplied from the pipeline, instead of using the parameter `-Target`.\n\n#### Outputs\n`string[]`\n\nString array of absolute file paths of the shortcuts which match the target specified.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrookm%2Fps-advanced-shortcut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrookm%2Fps-advanced-shortcut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrookm%2Fps-advanced-shortcut/lists"}