winget icon indicating copy to clipboard operation
winget copied to clipboard

Bloatware section will not run.

Open sleepycharlie07 opened this issue 3 years ago • 1 comments

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

sleepycharlie07 avatar Mar 21 '23 19:03 sleepycharlie07

Hi, did you run it as admin? Looks like the current user has no rights to execute the commands

Kugane avatar Mar 23 '23 08:03 Kugane