zoukankan      html  css  js  c++  java
  • win10找不到应用商店

    https://www.thewindowsclub.com/windows-store-app-missing-windows-10

    powershell 执行  

    1 Set-ExecutionPolicy Unrestricted
    2 保存reinstall-preinstalledApps.ps1文件 执行reinstall-preinstalledApps.ps1 *Microsoft.WindowsStore*
    # Get all the provisioned packages
    $Packages = (get-item 'HKLM:SoftwareMicrosoftWindowsCurrentVersionAppxAppxAllUserStoreApplications') | 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
    }

    3 使用WSReset.exe 重置

    重新安装ms store 命令

    https://answers.microsoft.com/zh-hans/windows/forum/all/windows10%E5%BA%94%E7%94%A8%E5%95%86%E5%BA%97/7a3cee2d-cde9-4547-9a79-b8d91fef979f?auth=1

    get-appxpackage *store* | remove-Appxpackage

    add-appxpackage -register "C:Program FilesWindowsApps*Store*AppxManifest.xml" -disabledevelopmentmode

  • 相关阅读:
    POJ ACM题分类
    HDU 4438 Hunters (概率 & 期望)
    HDU 1042 N!
    HDU 1073 Online Judge
    PKU 1006 Biorhythms (中国剩余定理 * *)
    HDU 1047 Integer Inquiry
    HDU 2710 Max Factorv (素数模板 & 多种解法)
    HDU A + B Problem II 1002
    第6期(江西省吉安市永丰县)县长手机信箱工作简报(自吹自擂政绩,自圆其说)
    Send mail from ASP.NET using your gmail account
  • 原文地址:https://www.cnblogs.com/wolbo/p/14926455.html
Copyright © 2011-2022 走看看