question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Unable to modify the shortcut"

See original GitHub issue

Steps to reproduce

Right-click title bar of PowerShell 7.1.2 (or any 7.x.x version) and choose Properties. Make any number of changes in any of the tabs, then click OK.

Expected behavior

The expectation is that these settings would be saved.

Actual behavior

An error occurs:

---------------------------
Error Updating Shortcut
---------------------------
Unable to modify the shortcut:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PowerShell\PowerShell 7 (x64).lnk.
Check to make sure it has not been deleted or renamed.
---------------------------
OK   
---------------------------

I have seen solutions around the internet which involve steps like creating a new shortcut to the existing shortcut, yada yada (stuff that shouldn’t be necessary).

Environment data

>$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.1.2
PSEdition                      Core
GitCommitId                    7.1.2
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
msftbot[bot]commented, Jan 20, 2022

This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.

4reactions
JeremyTBradshawcommented, Jan 20, 2022

Didn’t realize @iSazonov teed this up for closure. Great. Oh well, moving on again. Someday… It maybe Microsoft will just revive Windows PowerShell again and fix things there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to modify the shortcut when changing PowerShell ...
The easiest workaround is to simply right-click the PowerShell tile and select “Run as administrator.” This is not really satisfying because you ...
Read more >
How to fix Error Updating Shortcut when changing Windows ...
The solution to this problem is to simply run PowerShell as administrator and change the PowerShell Properties. If done properly, the next time ......
Read more >
Unable to modify the (PowerShell) shortcut error
Go to your Desktop and right click the icon and do Properties, edit your terminal to your liking. Change the Target to be:...
Read more >
I am unable to customize Command Prompt.
Hello, I have a problem when customizing Command Prompt for some reason. I chose my colors and everything, but when I wanted to...
Read more >
Changing Windows app shortcut properties without ...
I'm trying to change font/layout/etc shortcut properties of a specific console app. For example, PowerShell 7. The shortcut resides in C:\ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found