$sh=New-Object-COMWScript.Shell
$targetPath=$sh.CreateShortcut('C:\Users\Public\Desktop\Web Mail.lnk').TargetPath
$targetPath
That code almost works. It does get part of the target but not all of it. This Web Mail.lnk has this for the target path: "C:\Program Files\Internet Explorer\iexplore.exe" http://mail.acme.org
How come PowerShell only gets c:\program files\Internet Explorer\iexplore.exe? how do I get all of the path?
Thank you.