my power shell version is
5.0
In windows 10, to get all files from desktop, i use
Get-ChildItem C:\Desktop\
This returns only the files but i want to get only the short-cut icons name in that directory.
I also use this
Get-ChildItem C:\Desktop\ -force| where {$_.extension -eq ".lnk"}
but it also does not work.
Is that possible or is there any better way or is there any administrator or security issue?
Thanks in advance.