Avatar of McKnife
McKnife
Flag for Germany asked on

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

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

Windows 10PowershellWindows OSMicrosoft Server OS

Avatar of undefined
Last Comment
McKnife

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
McKnife

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
McKnife

ASKER
self-solved
Your help has saved me hundreds of hours of internet surfing.
fblack61