using power shell how do I extract from a .lnk

by Feb 1, 2018

using power shell  how do I extract from a .lnk   TargetPath  , WorkingDirectory  , Arguments  .

I am currently a sledge hammer to do this (sledge hammer = PowerShell + notepad + excel).  There is plenty of info on how to assign these value using PowerShell but very little on how to extract this info.

requirement / spec

1. scan a network drive and sub folder for all ".lnk"

2.  pipe this to a file

Q. why am I doing this ?

A. I can get the job ( application installs) done using a batch file but it is time to do everything in PowerShell.

I will create a second query  for my other  PowerShell problem.