如何為您的用戶帳戶或 Windows 10 中的所有用戶帳戶重新安裝和重新注冊所有内置 Windows 應用程序。注意,在安全模式下,您将無法從 Microsoft Store 重新注冊和重新安裝應用程序。
如果已經安裝了 Windows 應用程序,則在 PowerShell 中會看到一條紅色錯誤消息,讓您知道每個應用程序。如果您為所有用戶帳戶卸載了應用程序,則不會重新安裝該應用程序。如果您無法重新安裝應用程序,則需要從 Microsoft Store 安裝應用程序。
1、請執行以下步驟2(當前帳戶)或步驟3(所有帳戶)。2、重新安裝并重新注冊僅适用于當前帳戶的所有 Windows 應用程序
A)打開 Windows PowerShell。
B)複制下面的命令并将其粘貼到 PowerShell 中,然後按 Enter。
Get-AppXPackage|Foreach{Add-AppxPackage-DisableDevelopmentMode-Register"$($_.InstallLocation)\AppXManifest.xml"}
3、重新安裝并重新注冊所有帳戶的所有 Windows 應用程序
A)以管理員身份打開 Windows PowerShell。
B)複制下面的命令并将其粘貼到 PowerShell 中,然後按 Enter。
Get-AppXPackage-AllUsers|Foreach{Add-AppxPackage-DisableDevelopmentMode-Register"$($_.InstallLocation)\AppXManifest.xml"}
完成後,關閉 PowerShell,然後嘗試再次打開受影響的應用程序。
重新安裝并重新注冊當前帳戶的特定應用程序1、打開命令提示符。
2、将以下要重置的 Windows 應用程序的命令複制并粘貼到命令提示符中,然後按 Enter。 完成後,您可以根據需要關閉命令提示符。
3D BuilderCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *3DBuilder*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
3D ViewerCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Microsoft3DViewer*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Alarms & ClockCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *WindowsAlarms*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
App ConnectorCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *AppConnector*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
CalculatorCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *WindowsCalculator*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Calendar and MailCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *windowscommunicationsapps*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
CameraCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *WindowsCamera*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Candy Crush Soda SagaCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *CandyCrushSodaSaga*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
ConnectCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *PPIProjection*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Contact SupportCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *ContactSupport*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
CortanaCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Windows.Cortana*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Drawboard PDFCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *DrawboardPDF*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Feedback HubCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *WindowsFeedbackHub*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Get HelpCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *ContactSupport*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Get OfficeCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *MicrosoftOfficeHub*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Get StartedCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *GetStarted*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Groove MusicCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *ZuneMusic*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Mail and CalendarCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *windowscommunicationsapps*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
MapsCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *WindowsMaps*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
MessagingCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Messaging*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Microsoft EdgeCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *MicrosoftEdge*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Microsoft NewsCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *BingNews*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Microsoft Solitaire CollectionCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *MicrosoftSolitaireCollection*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Microsoft StoreCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *WindowsStore*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Microsoft WhiteboadCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Microsoft.Whiteboard*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Mixed Reality PortalCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Microsoft.MixedReality.Portal*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
MoneyCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *BingFinance*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Movies & TVCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *ZuneVideo*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Microsoft NewsCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *BingNews*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
OneDrive (Store app)Code:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *microsoft.microsoftskydrive*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
OneNoteCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Office.OneNote*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Paint 3DCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *MSPaint*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
PeopleCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *People*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
PhoneCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *CommsPhone*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Phone CompanionCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *WindowsPhone*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
PhotosCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Photos*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
SettingsCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *immersivecontrolpanel*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
SkypeCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *SkypeApp*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Snip & SketchCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Microsoft.ScreenSketch*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
SportsCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *BingSports*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Sticky NotesCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *MicrosoftStickyNotes*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
SwayCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Office.Sway*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
TipsCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Microsoft.Getstarted*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
TwitterCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Twitter*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Voice RecorderCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *WindowsSoundRecorder*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
WeatherCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *BingWeather*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Xbox Console CompanionCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *XboxApp*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Xbox Game BarCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Microsoft.XboxGamingOverlay*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Xbox One SmartGlassCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *XboxOneSmartGlass*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
Your PhoneCode:
PowerShell-ExecutionPolicy Unrestricted-Command"& {$manifest= (Get-AppxPackage *Microsoft.YourPhone*).InstallLocation '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register$manifest}"
您可以直接在微軟的應用商店進行搜索安裝即可。
,更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!