WinRT Powershell scripts

A post for WinRT scripts

UninstallMyApp.ps1

#WinRT app uninstall script
#Print all deployed winrt apps
get-appxpackage

#Print all deployed winrt apps with a name containing MyAppName
get-appxpackage -Name:"*MyAppName*"
#same as
#get-appxpackage | Where-Object {$_.Name -like "*MyAppName*"}

#Uninstall a certain app
#Remove-appxpackage 11333MyPublisherDisplayName.MyAppName_0.1.0.0_neutral__ha21hqwertyui

#Uninstall all apps with a certain name
get-appxpackage -Name:"*MyAppName*" | Remove-appxpackage 

Technet: How to Add and Remove Apps

Deployment troubleshooting

The End.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: