You can use (PowerShell as Admin)
Get-WindowsCapability -Online | Where-Object {$_.Name -like "*notepad*"}
(then Add-WindowsCapability with the returned name to re-install it)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
OS Windows 10 21H2 - I run a script that use the PowerShell cmdlet "Get-Appx" and remove Windows Universal Apps. Then Notepad app disappear.
I'm trying to whitelist notepad but can't find the package name. Thoughts?
You can use (PowerShell as Admin)
Get-WindowsCapability -Online | Where-Object {$_.Name -like "*notepad*"}
(then Add-WindowsCapability with the returned name to re-install it)
Did you try adding the notepad using the optional features in settings, apps & features, add?
if you cannot find using the optional features, you may have to use FOD (Features on-demand) package to reinstall/reload the notepad app.
Thanks,
Eswar
I don't want add it manually. I want find what is package name I'm removing and that also remove Notepad. Get-Appx returns alot of applications but I don't know which one is related to NotePad.