create_desktop_shortcut
1.2.1
own console window hidden, automatically matches Windows 11 Dark/Light mode (with an in-app toggle),
lets you browse for a .ps1 script, choose between PowerShell 5.1 and PowerShell 7.x (with automatic
installation if missing), pick and preview a custom or Windows shell i
own console window hidden, automatically matches Windows 11 Dark/Light mode (with an in-app toggle),
lets you browse for a .ps1 script, choose between PowerShell 5.1 and PowerShell 7.x (with automatic
installation if missing), pick and preview a custom or Windows shell icon, configure launch flags,
preview the exact command, and save the resulting .lnk shortcut directly to the Desktop.
Installation Options
Owners
Copyright
(c) 2026 waresoft. All rights reserved.
Package Details
Author(s)
- waresoft
Tags
PowerShell Shortcut ShortcutCreator DesktopShortcut LNK Launcher GUI WinForms Windows Desktop Utility Automation DarkMode UAC Elevation ExecutionPolicy HiddenWindow pwsh PowerShell7
Functions
Get-Pwsh7Info Invoke-AsyncTask Get-SystemDarkMode Apply-StatusStyle Apply-Theme
Dependencies
This script has no dependencies.
Release Notes
v1.2.1:
- Fixed PowerShell 7.x High-DPI & Multi-Resolution Rendering: Configured DpiUnawareGdiScaled high-DPI mode, DPI AutoScale baselines, dynamic ComboBox item heights, and WorkingArea screen clamping so the UI scales cleanly across resolutions and Windows display scales.
- Responsive 3-Zone Layout: Replaced fixed pixel coordinates with TableLayoutPanel/FlowLayoutPanel containers, pinned the command preview and action buttons at the bottom, and auto-sized initial form height to eliminate side scrollbars on startup while supporting AutoScroll on smaller displays.
v1.2.0:
- Aligned PowerShell 5.1 / 7.x mode selection, Get-Pwsh7Info detection, inline status indicator, and background winget/GitHub MSI installation with PSGallery-Manager.
- Added the "Windows Icons..." button (shell32.dll) alongside "Choose Icon..." and "Reset".
- Preserved the active PowerShell host executable across UAC self-elevation via (Get-Process -Id $PID).Path and restricted -STA to Windows PowerShell 5.1.
- Fixed Add-Type compilation on PowerShell 7 (.NET 8+) by dynamically resolving loaded assembly locations for -ReferencedAssemblies.
- Forced foreground window activation (SW_SHOW + SetForegroundWindow) on form startup and ensured deterministic COM release before binary UAC patching.
v1.1.0:
- Hid the PowerShell console window when running this utility via hidden relaunch flags and Win32 ShowWindow fallback.
- Added a "Hidden" option to the Window dropdown to create shortcuts that execute target scripts with -WindowStyle Hidden (and start minimized to prevent window flash).
- Automatically disables -NoExit when "Hidden" is selected to prevent orphaned background PowerShell processes.
- Updated the live command preview to reflect -WindowStyle Hidden dynamically.
FileList
- create_desktop_shortcut.nuspec
- create_desktop_shortcut.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.2.1 (current version) | 13 | 11/27/2026 |
| 1.2.0 | 12 | 11/26/2026 |
| 1.1.0 | 12 | 11/22/2026 |
| 1.0.0 | 9 | 11/22/2026 |