winget
winget copied to clipboard
Bloatware section will not run.
The entire bloatware section isn't working. Is there something I'm missing? I've not edited that part of the code. This is what I get when I run it. I obviously changed the username and directory.
Removing: king.com.CandyCrushSaga Get-AppxPackage : Access is denied. Access is denied. At C:\Users\username\User Company, Inc\FolderIMade\Documentation\Scripts\ScriptName.ps1:282 char:9
-
Get-AppxPackage -AllUsers $blt | Remove-AppxPackage -
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
- FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp xPackageCommand
Hi, did you run it as admin? Looks like the current user has no rights to execute the commands