Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WindowsApps (Microsoft Store) #560

Open
volkankaban opened this issue Nov 21, 2023 · 1 comment
Open

WindowsApps (Microsoft Store) #560

volkankaban opened this issue Nov 21, 2023 · 1 comment

Comments

@volkankaban
Copy link

Friendly reminder: Bulk-Crap-Uninstaller does not remove older versions of apps installed from the Microsoft Store App.

Microsoft Store apps Folders;

  • C:\Program Files\WindowsApps\
  • C:\Users{user}\AppData\Local\Packages\
# List Microsoft Store apps for all users
Get-AppxPackage -AllUsers | Sort-Object Name | Select-Object PackageFullName, Name, Version

# List Microsoft Store apps for a specific user (replace {user} with your username)
Get-ChildItem -Path "C:\Users\{user}\AppData\Local\Packages\" | ForEach-Object { $PackageName = $_.Name; Get-AppxPackage | Where-Object { $_.PackageFamilyName -like "*$PackageName*" } | Sort-Object Name | Select-Object PackageFullName, Name, Version }

Screenshot 2023-11-21 125657
Screenshot 2023-11-21 130620

@goyalyashpal
Copy link

goyalyashpal commented Dec 13, 2023

# List Microsoft Store apps for all users
Get-AppxPackage -AllUsers  ...

wow, thanks a lot for commands, some fixes/improvements/styling for my own use:

# List Microsoft Store apps for current users: -AllUsers flag raised Access is denied error, as I ain't admin
Get-AppxPackage | Sort-Object Name | Select-Object PackageFullName, Name, Version

# List Microsoft Store apps for current user # hmm, i don't know if u can specify another user via env vars
Get-ChildItem -Path $Env:LOCALAPPDATA\Packages\ |
ForEach-Object { 
    $PackageName = $_.Name; 
    Get-AppxPackage | 
    Where-Object { $_.PackageFamilyName -like "*$PackageName*" } | 
    Sort-Object Name | 
    Select-Object PackageFullName, Name, Version 
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants