Skip to content

Instantly share code, notes, and snippets.

@rwp0
Last active July 28, 2025 05:21
Show Gist options
  • Save rwp0/e94a7903e798336d38f9a5f7cd722345 to your computer and use it in GitHub Desktop.
Save rwp0/e94a7903e798336d38f9a5f7cd722345 to your computer and use it in GitHub Desktop.
Read Windows Shortcut Details with PowerShell
PS C:\Users\MyUser> (new-object -comobject wscript.shell).CreateShortcut("C:\Users\MyUser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Google Calendar.lnk")
FullName : C:\Users\MyUser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Google Calendar.lnk
Arguments : "-taskbar-tab" "43091b08-244e-40f3-91c9-6a24dc9f454q" "-new-window" "https://calendar.google.com" "-profile"
"C:\Users\MyUser\AppData\Roaming\Mozilla\Firefox\Profiles\fw5sd6e9.default-nightly" "-container" "0"
Description : Google Calendar Web App
Hotkey :
IconLocation : C:\Users\MyUser\AppData\Roaming\Mozilla\Firefox\Profiles\vf5zb6e8.default-nightly\taskbartabs\icons\43091b08-244e-40f3-91c9-6a24dc9f454q.ico,0
RelativePath :
TargetPath : C:\Users\MyUser\AppData\Local\Firefox Nightly\firefox.exe
WindowStyle : 1
WorkingDirectory : C:\Users\MyUser\AppData\Local\Firefox Nightly
(new-object -comobject wscript.shell).createshortcut("C:\Users\MyUser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Google Calendar.lnk")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment