.lnk Files

$shortcutPath = "C:\Users\USERNAME\Desktop\Opus Supervisor.lnk"
$shell = New-Object -ComObject WScript.Shell
$shortcut = $shell.CreateShortcut($shortcutPath)

$shortcut.TargetPath
$shortcut.Arguments
$shortcut.WorkingDirectory
$shortcut.IconLocation
$shortcut.Description
$shortcut.Hotkey
$shortcut.WindowStyle

Last updated

Was this helpful?