The easiest ways of doing that is by deleting the Icon file.If that file is missing, Windows will build it from scratch.Description = "Our new link" ## This is the "Comment" field $shortcut. I'm thinking the easier way will be to overwrite and/or create a new file.Do you have access to these systems via a remote share?Copy-Item $sourcepath $destination ## Get the lnk we want to use as a template $shell = New-Object -COM WScript. Create Shortcut($destination) ## Open the lnk $shortcut.Target Path = "C:\path\to\new\exe.exe" ## Make changes $shortcut. You still need to copy the util to the remote system, then possibly call it using WMI to make the changes you're looking for.
If these functions aren't available on your keyboard, you might be able to reproduce some of them by creating your own keyboard shortcuts.
UPDATE: If you use Windows 8 (or newer) the above procedure may not work.
In such a case, you need to use a different procedure.
In Windows 7 and Vista, the icon cache file is: So, what to do if the icon cache file became corrupted or damaged, or if Windows did not replace a copy of an icon in the icon cache with a new image of the icon for some reason?
The solution is simple: you need to force Windows to rebuild its icon cache!