Edit .lnk Properties with Powershell - Simplify Shortcuts

If you're looking for a quick and easy way to edit the properties of .lnk files using Powershell, then you've come to the right place. By using a few simple commands, you can simplify your shortcuts and save time in the long run.

First, you'll need to open Powershell. Once you have it open, navigate to the folder where your .lnk file is located. You can do this by using the "cd" command followed by the file path.

Once you're in the correct folder, you can use the "Get-Item" command to select the .lnk file. From there, you can use the "Set-ItemProperty" command to edit the properties of the file. For example, you can change the target path to a different location or modify the start in folder.

Here's an example of how to modify the target path of a .lnk file using Powershell:

cd C:UsersUsernameDesktop
Get-Item "Shortcut.lnk" | Set-ItemProperty -Name Target -Value "C:NewLocationProgram.exe"

In this example, we navigated to the Desktop folder and selected the "Shortcut.lnk" file. Then, we used the "Set-ItemProperty" command to change the target path to "C:NewLocationProgram.exe".

By using Powershell to edit .lnk properties, you can simplify your shortcuts and make them more efficient. With just a few simple commands, you can save time and streamline your workflow.

Click to rate this post!
[Total: 0 Average: 0]

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Go up

Below we inform you of the use we make of the data we collect while browsing our pages. You can change your preferences at any time by accessing the link to the Privacy Area that you will find at the bottom of our main page. More Information