Files
wBase/CleaningScripts/AddWithOffice.ps1
USER ddd9ba7a17 .
2023-03-30 20:50:43 +01:00

59 lines
1.9 KiB
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$applist = @(
"*BingWeather*"
"*ZuneMusic*"
"*ZuneVideo*"
"*4DF9E0F8.Netflix"
"*9E2F88E3.Twitter"
"*CandyCrush*"
"*E046963F.LenovoCompanion"
"*Lenovo*"
"Microsoft.3DBuilder"
"Microsoft.Advertising*"
"Microsoft.Appconnector"
"Microsoft.Bing*"
"Microsoft.CommsPhone"
"Microsoft.ConnectivityStore"
"Microsoft.DesktopAppInstaller"
"Microsoft.Getstarted"
"Microsoft.Messaging"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.MixedReality*"
"Microsoft.People"
"Microsoft.Services.Store.Engagement"
"Microsoft.SkypeApp"
"Microsoft.WindowsAlarms"
"Microsoft.windowscommunicationsapps"
"Microsoft.WindowsFeedbackHub"
"Microsoft.WindowsMaps"
"Microsoft.WindowsPhone"
"Microsoft.Xbox*"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
"Microsoft.YourPhone*"
"TuneIn.TuneInRadio"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.Office.OneNote"
"Microsoft.Office.Sway"
"Microsoft.OneConnect"
"Microsoft.WindowsStore"
"Microsoft.StorePurchaseApp"
)
ForEach($app in $applist){
Add-AppxPackage -AllUsers -Name $app -ErrorAction SilentlyContinue
Add-AppxPackage -Name $app -ErrorAction SilentlyContinue
Add-AppxProvisionedPackage -Online | where {$_.PackageName -like $app} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
}
https://akosbakos.ch/reinstall-windows-store-app/
https://community.spiceworks.com/topic/2176027-how-to-add-windows-10-apps-back-with-powershell
Add-AppxProvisionedPackage -Online -PackagePath "E:\x86fre\Microsoft.Windows.Photos_8wekyb3d8bbwe.appxbundle" LicensePath "E:\x86fre\Microsoft.Windows.Photos_8wekyb3d8bbwe.xml"
https://www.winhelponline.com/blog/restore-windows-store-windows-10-uninstall-with-powershell/
https://www.guidingtech.com/fix-microsoft-store-missing-windows-10/
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage *WindowsStore*).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"