Removing/restoring Metro apps in Windows 10



No matter how many supporters of the old versions of the OS, all the same it's time to upgrade to Windows 10. In this regard, I propose to deal with the pre-Metro applications. Agree, very few people will use absolutely all applications, which imposes on us Corporation. Because most of them just take up space, and someone generally annoying. In this article I will share with you a way that you can "clean up" the system from such unnecessary applications on Windows 10.

Uninstall


So, we remove the unnecessary apps. Offer You a powershell script, the result of which displays all the installed Metro apps, and then it's up to user to delete or to approach the question of selectively removing only some of them.

the Script is as follows:
Function PSCustomErrorRecord
{
Param
( 
[Parameter(Mandatory=$true,Position=1)][String]$ExceptionString,
[Parameter(Mandatory=$true,Position=2)][String]$ErrorID,
[Parameter(Mandatory=$true,Position=3)][System.Management.Automation.ErrorCategory]$ErrorCategory,
[Parameter(Mandatory=$true,Position=4)][PSObject]$TargetObject
)
Process
{
$exception = New-Object System.Management.Automation.RuntimeException($ExceptionString)
$customError = New-Object System.Management.Automation.ErrorRecord($exception,$ErrorID,$ErrorCategory,$TargetObject)
return $customError
}
}

Function RemoveAppxPackage
{
$index=1
$apps=Get-AppxPackage
Write-Host "ID is t App name"
foreach ($app in $apps)
{
Write-Host " $index't $($app.name)"
$index++
}

Do
{
$IDs=Read-Host -Prompt "Which Apps do you want to remove? `nInput their IDs by space (e.g. 5 12 17). `nIf you want to remove every possible apps, enter 'all'"
}

While($IDs eq "")

if ($IDs -eq "all") {Get-AppXPackage -All | Remove-AppxPackage -ErrorAction SilentlyContinue –confirm

$AppName=($ID -ge 1 -and $ID -le $apps.name) 

if (-not(Get-AppxPackage -Name $AppName))
{
Write-host "Apps has been removed successfully"
}
else
{
Write-Warning "Remove '$AppName' failed! This app is  part  of Windows and cannot  be  uninstalled on a per-user basis."
}

}

else {

try
{ 
[int[]]$IDs=$IDs-split " "

}

catch
{
$errorMsg = $Messages.IncorrectInput
$errorMsg = $errorMsg -replace "Placeholder01",$IDs
$customError = PSCustomErrorRecord `
-ExceptionString $errorMsg `
-ErrorCategory NotSpecified -ErrorID 1-TargetObject $pscmdlet
the $pscmdlet.WriteError($customError)
return
}

foreach ($ID in $IDs)
{
#check id is in the range
if ($ID -ge 1 -and $ID -le $apps.count)
{
$ID--
#Remove each app
$AppName=$apps[$ID].name

Remove-AppxPackage -Package $apps[$ID] -ErrorAction SilentlyContinue –confirm
if (-not(Get-AppxPackage -Name $AppName))
{
Write-host "$AppName has been removed successfully"
}
else
{
Write-Warning "Remove '$AppName' failed! This app is part of Windows and cannot be uninstalled on a per-user basis."
}
}
else
{
$errorMsg = $Messages.WrongID
$errorMsg = $errorMsg -replace "Placeholder01",$ID
$customError = PSCustomErrorRecord `
-ExceptionString $errorMsg `
-ErrorCategory NotSpecified -ErrorID 1-TargetObject $pscmdlet
the $pscmdlet.WriteError($customError)
}
}
}
}





$result = 0;

while ($result -eq 0) {

RemoveAppxPackage

$title = "Delete Apps"
$message = "Do you want to continue?"

$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", `
"Yes, I want to remove another application." 

$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", `
"No, all unnecessary applications are removed."

$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)

$result = $host.ui.PromptForChoice($title, $message, $options, 0) 

}


Save in the format .or download a ps1 script to execute run as administrator, I recommend to create a batch file for the script below (save it in a format .bat and UAC itself will ask for confirmation of rights):

Script .bat
@echo off
cls

echo Apps
echo.
echo press any key to continue...

pause > NUL

echo
echo.

PowerShell -NoProfile -ExecutionPolicy Bypass-Command "&{Start-Process  PowerShell  -ArgumentList '-NoProfile -ExecutionPolicy Bypass-File ""%~dp0.\app.ps1""' -Verb RunAs}"

echo You deleted apps...
echo.
pause

Where app.ps1 – the name of the saved power shell script.

note: when run this script is the warning message: "Execution Policy Change".



Choose "Yes" to make changes.

As a result, You will see the following:



The screen shows a list of installed applications. And offered to list through space, the ones that You wish to remove.

Let's say you decide to remove "Microsoft.BingNews". Enter the appropriate application number, and if successful, the result should give you the following:


Please note that system apps you delete will not. About it you will see the following message:



This is true for applications such as:

the
    the
  • Microsoft.Windows.Cortana
  • the
  • MicrosoftEdge
  • the
  • ContactSupport
  • the
  • PrintDialog.

A more accurate list of "unkillable" apps in the screenshot below:



It is also possible delete all the apps (except the above), it is instead a specific application, enter "all", and then only confirm deleting all at once (Yes to All) or individually (Yes).



Restore


If you accidentally deleted or subsequently decided to use a particular app, then you can restore it via Windows Store or use the following suggested a recovery option.

For example, you want to restore the app Store, which, incidentally, removes the above-proposed script, this requires the administrator to run the following line in Powershell:

the
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Store*\AppxManifest.xml" -DisableDevelopmentMode

Similarly, you can restore other application specifying the corresponding name between "*". If you need to resume some N-th number, it is better to use the script (you can remove/add it you need rows):

Script to restore apps
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Weather*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Finance*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Maps*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*News*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Sports*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Travel*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Camera*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Reader*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Xbox*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Alarms*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Calculator*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*OneNote*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*People*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*SoundRecoder*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*3dbuilder*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Store*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Photos*\AppxManifest.xml" -DisableDevelopmentMode
Add-AppxPackage -register "C:\Program Files\WindowsApps\*Phone*\AppxManifest.xml" -DisableDevelopmentMode

As in the previous case, save the script, edit if needed and run it.

Or, alternatively, if you want to return the whole set of pre-installed utilities, type the following line as administrator in Powershell. So don't be afraid to experiment, to restore the original state is easy:

the
Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

When restoring any warning messages, they belong to applications that are currently running.

Recovery of photo viewer in Windows 10


Most of the users installing Windows 10, unhappy with the lack of app photo viewer Windows Photo Viewer.

To restore the Photo Viewer, you need to add some keys to the registry. To do this, save the following script with the extension .reg and run it. Then select this app to open images by default: Settings — Default apps — Photo — Windows Photo Viewer:



Script to add keys to the registry:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]

".wdp"="PhotoViewer.FileAssoc.Wdp"
".jfif"="PhotoViewer.FileAssoc.JFIF"
".dib"="PhotoViewer.FileAssoc.Bitmap"
".png"="PhotoViewer.FileAssoc.Png"
".jxr"="PhotoViewer.FileAssoc.Wdp"
".bmp"="PhotoViewer.FileAssoc.Bitmap"
".jpe"="PhotoViewer.FileAssoc.Jpeg"
".jpeg"="PhotoViewer.FileAssoc.Jpeg"
".gif"="PhotoViewer.FileAssoc.Gif"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap]
"ImageOptionFlags"=dword:00000001
"FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,\
00,46,00,69,00,6 c,00,65,00,73,00,25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,\
77,00,73,00,20,00,50,00,68,00,6 f,00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,\
00,65,00,72,00,5 c,00,50,00,68,00,6 f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,\
65,00,72,00,2 e,00,64,00,6 c,00,6 c,00,2 c,00,2 d,00,33,00,30,00,35,00,36,00,00,\
00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\DefaultIcon]
@="%SystemRoot%\\System32\\imageres.dll,-70"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\shell]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\shell\open]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6 d,00,52,00,6 f,00,6 f,00,74,00,25,\
00,5 c,00,53,00,79,00,73,00,74,00,65,00,6 d,00,33,00,32,00,5 c,00,72,00,75,00,\
6e,00,64,00,6 c,00,6 c,00,33,00,32,00,2 e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,00,46,00,69,00,6 c,00,65,00,73,00,\
25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,00,20,00,50,00,68,00,6 f,\
00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5 c,00,50,00,68,00,\
6f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,65,00,72,00,2 e,00,64,00,6 c,00,6 c,\
00,22,00,2 c,00,20,00,49,00,6 d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6 c,00,6 c,00,73,00,63,00,72,00,65,00,65,00,6 e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF]
"EditFlags"=dword:00010000
"ImageOptionFlags"=dword:00000001
"FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,\
00,46,00,69,00,6 c,00,65,00,73,00,25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,\
77,00,73,00,20,00,50,00,68,00,6 f,00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,\
00,65,00,72,00,5 c,00,50,00,68,00,6 f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,\
65,00,72,00,2 e,00,64,00,6 c,00,6 c,00,2 c,00,2 d,00,33,00,30,00,35,00,35,00,00,\
00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\DefaultIcon]
@="%SystemRoot%\\System32\\imageres.dll,-72"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open]
"MuiVerb"=hex(2):40,00,25,00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,00,46,00,\
69,00,6 c,00,65,00,73,00,25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,\
00,20,00,50,00,68,00,6 f,00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,\
72,00,5 c,00,70,00,68,00,6 f,00,74,00,6 f,00,76,00,69,00,65,00,77,00,65,00,72,\
00,2 e,00,64,00,6 c,00,6 c,00,2 c,00,2 d,00,33,00,30,00,34,00,33,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6 d,00,52,00,6 f,00,6 f,00,74,00,25,\
00,5 c,00,53,00,79,00,73,00,74,00,65,00,6 d,00,33,00,32,00,5 c,00,72,00,75,00,\
6e,00,64,00,6 c,00,6 c,00,33,00,32,00,2 e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,00,46,00,69,00,6 c,00,65,00,73,00,\
25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,00,20,00,50,00,68,00,6 f,\
00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5 c,00,50,00,68,00,\
6f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,65,00,72,00,2 e,00,64,00,6 c,00,6 c,\
00,22,00,2 c,00,20,00,49,00,6 d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6 c,00,6 c,00,73,00,63,00,72,00,65,00,65,00,6 e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg]
"EditFlags"=dword:00010000
"ImageOptionFlags"=dword:00000001
"FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,\
00,46,00,69,00,6 c,00,65,00,73,00,25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,\
77,00,73,00,20,00,50,00,68,00,6 f,00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,\
00,65,00,72,00,5 c,00,50,00,68,00,6 f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,\
65,00,72,00,2 e,00,64,00,6 c,00,6 c,00,2 c,00,2 d,00,33,00,30,00,35,00,35,00,00,\
00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\DefaultIcon]
@="%SystemRoot%\\System32\\imageres.dll,-72"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open]
"MuiVerb"=hex(2):40,00,25,00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,00,46,00,\
69,00,6 c,00,65,00,73,00,25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,\
00,20,00,50,00,68,00,6 f,00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,\
72,00,5 c,00,70,00,68,00,6 f,00,74,00,6 f,00,76,00,69,00,65,00,77,00,65,00,72,\
00,2 e,00,64,00,6 c,00,6 c,00,2 c,00,2 d,00,33,00,30,00,34,00,33,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6 d,00,52,00,6 f,00,6 f,00,74,00,25,\
00,5 c,00,53,00,79,00,73,00,74,00,65,00,6 d,00,33,00,32,00,5 c,00,72,00,75,00,\
6e,00,64,00,6 c,00,6 c,00,33,00,32,00,2 e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,00,46,00,69,00,6 c,00,65,00,73,00,\
25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,00,20,00,50,00,68,00,6 f,\
00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5 c,00,50,00,68,00,\
6f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,65,00,72,00,2 e,00,64,00,6 c,00,6 c,\
00,22,00,2 c,00,20,00,49,00,6 d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6 c,00,6 c,00,73,00,63,00,72,00,65,00,65,00,6 e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif]
"ImageOptionFlags"=dword:00000001
"FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,\
00,46,00,69,00,6 c,00,65,00,73,00,25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,\
77,00,73,00,20,00,50,00,68,00,6 f,00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,\
00,65,00,72,00,5 c,00,50,00,68,00,6 f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,\
65,00,72,00,2 e,00,64,00,6 c,00,6 c,00,2 c,00,2 d,00,33,00,30,00,35,00,37,00,00,\
00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\DefaultIcon]
@="%SystemRoot%\\System32\\imageres.dll,-83"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\shell]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\shell\open]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6 d,00,52,00,6 f,00,6 f,00,74,00,25,\
00,5 c,00,53,00,79,00,73,00,74,00,65,00,6 d,00,33,00,32,00,5 c,00,72,00,75,00,\
6e,00,64,00,6 c,00,6 c,00,33,00,32,00,2 e,00,65,00,78,00,65,00,20,00,22,00,25,\

25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,00,20,00,50,00,68,00,6 f,\
00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5 c,00,50,00,68,00,\
6f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,65,00,72,00,2 e,00,64,00,6 c,00,6 c,\
00,22,00,2 c,00,20,00,49,00,6 d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6 c,00,6 c,00,73,00,63,00,72,00,65,00,65,00,6 e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png]
"ImageOptionFlags"=dword:00000001
"FriendlyTypeName"=hex(2):40,00,25,00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,\
00,46,00,69,00,6 c,00,65,00,73,00,25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,\
77,00,73,00,20,00,50,00,68,00,6 f,00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,\
00,65,00,72,00,5 c,00,50,00,68,00,6 f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,\
65,00,72,00,2 e,00,64,00,6 c,00,6 c,00,2 c,00,2 d,00,33,00,30,00,35,00,37,00,00,\
00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\DefaultIcon]
@="%SystemRoot%\\System32\\imageres.dll,-71"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\shell]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\shell\open]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6 d,00,52,00,6 f,00,6 f,00,74,00,25,\
00,5 c,00,53,00,79,00,73,00,74,00,65,00,6 d,00,33,00,32,00,5 c,00,72,00,75,00,\
6e,00,64,00,6 c,00,6 c,00,33,00,32,00,2 e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,00,46,00,69,00,6 c,00,65,00,73,00,\
25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,00,20,00,50,00,68,00,6 f,\
00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5 c,00,50,00,68,00,\
6f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,65,00,72,00,2 e,00,64,00,6 c,00,6 c,\
00,22,00,2 c,00,20,00,49,00,6 d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6 c,00,6 c,00,73,00,63,00,72,00,65,00,65,00,6 e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp]
"EditFlags"=dword:00010000
"ImageOptionFlags"=dword:00000001

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\DefaultIcon]
@="%SystemRoot%\\System32\\wmphoto.dll,-400"

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell]

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open]
"MuiVerb"=hex(2):40,00,25,00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,00,46,00,\
69,00,6 c,00,65,00,73,00,25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,\
00,20,00,50,00,68,00,6 f,00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,\
72,00,5 c,00,70,00,68,00,6 f,00,74,00,6 f,00,76,00,69,00,65,00,77,00,65,00,72,\
00,2 e,00,64,00,6 c,00,6 c,00,2 c,00,2 d,00,33,00,30,00,34,00,33,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6 d,00,52,00,6 f,00,6 f,00,74,00,25,\
00,5 c,00,53,00,79,00,73,00,74,00,65,00,6 d,00,33,00,32,00,5 c,00,72,00,75,00,\
6e,00,64,00,6 c,00,6 c,00,33,00,32,00,2 e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6 f,00,67,00,72,00,61,00,6 d,00,46,00,69,00,6 c,00,65,00,73,00,\
25,00,5 c,00,57,00,69,00,6 e,00,64,00,6 f,00,77,00,73,00,20,00,50,00,68,00,6 f,\
00,74,00,6 f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5 c,00,50,00,68,00,\
6f,00,74,00,6 f,00,56,00,69,00,65,00,77,00,65,00,72,00,2 e,00,64,00,6 c,00,6 c,\
00,22,00,2 c,00,20,00,49,00,6 d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6 c,00,6 c,00,73,00,63,00,72,00,65,00,65,00,6 e,00,20,00,25,\
00,31,00,00,00

[HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities]
"ApplicationDescription"="@%ProgramFiles%\\Windows Photo Viewer\\photoviewer.dll,-3069"
"ApplicationName"="@%ProgramFiles%\\Windows Photo Viewer\\photoviewer.dll,-3009"

Saved results


The setting was not in vain and the result was not gone, I recommend to disable automatic installation of apps with updates in the registry.

To do this, you need to log in under the administrative uchetku, in the registry go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate.

And change the value to Your liking (default 4):
2 – turn off automatic updates of custom applications
4 – enable automatic updates of user applications.



Or you can use the following script to change the registry (also save with the extension .reg and start):

Script to disable automatic installation of apps with updates in the registry:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate]

"AutoDownload"=dword:00000002

PS: I Hope that the proposed option of removing/restoring apps a few "easy" tincture Windows 10 on your PC. After all the changes I recommend to reboot.
Article based on information from habrahabr.ru

Популярные сообщения из этого блога

Approval of WSUS updates: import, export, copy

Kaspersky Security Center — the fight for automation

The Hilbert curve vs. Z-order