Advertised shortcut target?

Answered
0
0

Hi.  I can get the target of a shortcut Lnk file like this:

$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk")
write-host $Shortcut.TargetPath

But it doesn’t work for advertised shortcuts. Does anybody know how to get the target path of an advertised shortcut? Thanks.

  • You must to post comments
Best Answer
1
0

Hi.

Thankfully it’s not too difficult – take a look at how you can use PowerShell to find an advertised shortcut target .

Kae.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.