App Attach – Create Shortcut

email me

To create a shortcut to a mounted VHD app, app attach app, set target file to explorer.exe and arguments to shell:AppsFolder\AdobeAcrobat2020_1nrb0vh0kd882!ACROBAT
 

Code.cpp

 

# MrNetTek
# eddiejackson.net
# 7/26/2021
# free for public use
# free to claim as your own
 
$TargetFile = "C:\Windows\explorer.exe"
$ShortcutFile = "$env:USERPROFILE\Desktop\Acrobat2020.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.Arguments="shell:AppsFolder\AdobeAcrobat2020_1nrb0vh0kd882!ACROBAT"
$Shortcut.TargetPath = $TargetFile
$Shortcut.IconLocation = "C:\Path\Icon.ico"
$Shortcut.Save()