We help IT Professionals succeed at work.
Get Started

Script needed that unpins certain built-in apps from the start menu

163 Views
Last Modified: 2015-11-03
Hi experts.

I am migrating our company desktops from win8.1 to win10.
Automated start menu migration is what this is about.

Win10 adds a dozen shortcuts to apps which I have unpinned automatically simply by uninstalling that apps. There's one app however, that I don't want to uninstall, but still I want to have it removed from the start menu by a script.

I can unpin any item that I know the executable-path of, I use (code example for the classic app journal.exe)
(New-Object -Com Shell.Application).NameSpace(0x0).ParseName('C:\Program Files\Windows Journal\Journal.exe').Verbs() | ?{$_.Name.replace('&','') -match 'unpin from start'} | %{$_.DoIt()}

Open in new window


But what would be the path of for example the windows store app and would it work in a similar way as with the classic apps? If not, how to?
I tried this code to no avail:
(New-Object -Com Shell.Application).NameSpace(0x0).ParseName('C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.7.1.0_x64__8wekyb3d8bbwe\WinStore.Mobile.exe').Verbs() | ?{$_.Name.replace('&','') -match 'unpin from start'} | %{$_.DoIt()}

Open in new window

Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE