create_desktop_shortcut

1.1.0

Self-elevates to Administrator in STA mode with its own console window hidden, automatically
matches Windows 11 Dark/Light mode (with an in-app toggle), lets you browse for a .ps1 script,
choose and preview a custom icon (.ico/.exe/.dll), configure PowerShell launch flags (including
Hidden window execution), preview the exact command, and save the resulting .lnk short
Self-elevates to Administrator in STA mode with its own console window hidden, automatically
matches Windows 11 Dark/Light mode (with an in-app toggle), lets you browse for a .ps1 script,
choose and preview a custom icon (.ico/.exe/.dll), configure PowerShell launch flags (including
Hidden window execution), preview the exact command, and save the resulting .lnk shortcut
directly to the Desktop.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name create_desktop_shortcut

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • waresoft

Tags

PowerShell Automation

Functions

Get-SystemDarkMode Apply-StatusStyle Apply-Theme Resolve-IconSpec Update-IconPreview Get-PsArgumentString Update-FormState

Dependencies

This script has no dependencies.

Release Notes

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

Version History

Version Downloads Last updated
1.1.0 (current version) 11 11/22/2026
1.0.0 9 11/22/2026