> For the complete documentation index, see [llms.txt](https://windows.dfirhandbook.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://windows.dfirhandbook.com/windows-artifacts/folder-file-opening-creation/powershell-scripts/.lnk-files.md).

# .lnk Files

```powershell
$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
```
