Ir al contenido principal

Windows | Powershell | Reinstalar o Instalar calculadora o tienda Windows store nuevamente

 Windows | Powershell | Instalar calculadora o tienda Windows store nuevamente


  1. Primero descargar el siguiente script, directamente de Microsoft:
    https://download.microsoft.com/download/5/F/0/5F04003A-035E-4A0F-9662-43E32C546F6C/reinstall-preinstalledApps.zip
    • o  pueden generar el script reinstall-preinstalledApps.ps1 con el código:

      ########################################


      # Get all the provisioned packages
      $Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem

      # Filter the list if provided a filter
      $PackageFilter = $args[0]
      if ([string]::IsNullOrEmpty($PackageFilter))
      {
      echo "No filter specified, attempting to re-register all provisioned apps."
      }
      else
      {
      $Packages = $Packages | where {$_.Name -like $PackageFilter} 

      if ($Packages -eq $null)
      {
      echo "No provisioned apps match the specified filter."
      exit
      }
      else
      {
      echo "Registering the provisioned apps that match $PackageFilter"
      }
      }

      ForEach($Package in $Packages)
      {
      # get package name & path
      $PackageName = $Package | Get-ItemProperty | Select-Object -ExpandProperty PSChildName
      $PackagePath = [System.Environment]::ExpandEnvironmentVariables(($Package | Get-ItemProperty | Select-Object -ExpandProperty Path))

      # register the package
      echo "Attempting to register package: $PackageName"

      Add-AppxPackage -register $PackagePath -DisableDevelopmentMode
      }



      ###################################################

Abrir Powershell como administrador de equipo.


Habilitar la ejecución de script, con:

set-executionpolicy remotesigned



Luego de habilitar, nos ubicamos en la ruta donde descargamos el script



Ejecutamos el script, pero:
- Si vas a instalar todas las aplicaciones nuevamente.

.\reinstall-preinstalledApps


- Si vas instalar solo la tienda Store, ponerlo entre asterisco:

.\reinstall-preinstalledApps *Microsoft.WindowsStore*





- Sivas a instalar solo la calculadora o cualquier otra aplicación:


.\reinstall-preinstalledApps *WindowsCalculator*

Validamos y ya tenemos nuevamente la calculadora:

También puedes refrescar con :

WSRESET

Comentarios

Entradas populares de este blog

Windows | Linux | Java SE 8 Archive Downloads (JRE y JDK 8u211 and later)

 https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html Java SE 8 Archive Downloads (JDK 8u211 and later) Go to the  Oracle Java Archive  page. The JDK is a development environment for building applications using the Java programming language. The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java TM  platform. Important Oracle JDK License Update The Oracle JDK License has changed for releases starting April 16, 2019. The new  Oracle Technology Network License Agreement for Oracle Java SE  is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available  here . Commercial licens...

Google | Chrome | Navegador | Versiones | Windows, Linux y MAC OS

Google Chrome Older Versions Download (Windows, Linux & Mac) Why use an older version of Google Chrome? Google only provides an online setup file for Google Chrome which installs the latest version of Google Chrome. It happens frequently that a user upgrades to a new version of Google Chrome and gets upset by an unpleasant feature, a missing option or an annoying bug. Therefore, some users want to roll back to an older version of Google Chrome to preserve a useful feature, option or support some legacy technology. However, is it really wise to use an out-dated verison of Google Chrome? The answer is NO since out-dated browsers usually come with security issues. For users who insist on using an old version of Google Chrome and  becoming vulnerable to security issues , you can find the right version of Google Chrome to download for your platform in the following sections. Support of Java, Silverlight and NPAPI plugins Unfortunately, we only started to archive old versions of Chro...

Windows | INVALID CLASS ERROR | CMD | SYSTEMINFO | DRIVERS | WMI | Windows Management Instrumentation service | Clase no valida | Cómo reparar WMI

 Windows | INVALID CLASS ERROR | CMD | SYSTEMINFO | DRIVERS Error cuando ejecuto aplicaciones o en el sistema Operativo: System.Management.ManagementException Invalid class Se debe realizar lo siguiente: Inicie el complemento WMI MMC en  Inicio  ->  Ejecutar  -> luego ingrese  WMIMGMT.MSC Haga clic con el botón derecho en  Control WMI (local)  y haga clic en  Propiedades Si WMI funciona correctamente, mostrará Buenas propiedades.  Si ve una  clase no válida,   entonces su WMI no está funcionando correctamente. Malo Bien Solución de problemas: Abrir cmd y ejecutar: sfc /scannow DISM /Online /Cleanup-Image /RestoreHealth Winmgmt.exe /standalonehost Winmgmt.exe /resetrepository winmgmt /resyncperf Una vez terminado, revise  WMIMGMT.MSC  para ver si está completando las Propiedades correctamente. https://techcommunity.microsoft.com/t5/ask-the-performance-team/wmidiag-2-2-is-here/ba-p/375642 Windows Management I...