Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Find and modify application shortcuts ... with Powershell?

$
0
0

I need to locate and modify all application shortcuts on my client machines for a particular software package. I need to change one of the command line options. Some clients will have this shortcut on their desktop, some won't, and others will have it in their program files list, and perhaps other places as well. I've been trying to use Powershell for this purpose, but I've hit a brick wall. At this point I'm just trying to get a list of the files. This code does not work (it produces no results):

Get-ChildItem \\custserv216\C$\Users -recurse | Where-Object {$_.name  -like "SYSPRO*.lnk"}

I can find these files using the windows search command, so I know they're there. Any suggestions? I'm sad to say I've been working on this for quite a while with no luck. As far as I can tell my command complies with all of the documentation and examples I can find.


                       

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>