dishposa.blogg.se

Microsoft solitaire collection android if i uninstall and reinstall do i keep my data
Microsoft solitaire collection android if i uninstall and reinstall do i keep my data








Then assign the script to your Intune users group and you’re good to go! The settings are important though – we want to select Run this script using the logged on credentials. To deploy, open the Microsoft Endpoint Manager admin center and click Devices > PowerShell Scripts > Add: PowerShell scriptsįor properties, I just named the script Remove Solitaire. I used PowerShell ISE to do this: PowerShell ISE Solitaire Removal Script Now that we have the script, we just need to save it as a. We can do this by calling the $appToRemove object and use a period with the property we want to call – thus, $appToRemove.packagefullname. If we call the variable $appToRemove after we’ve run the query, we’ll see the Solitaire appx package object: $appToRemove objectĪnd now the easy part – we uninstall the app by calling the remove-appxpackage PowerShell command and specifying the packagefullname. For reference, the fullpackagename will change depending on the Windows version. We use the wildcard characters (*) so we don’t need to know the exact name of the app. We’ll create another variable, $appToRemove, and query the $listOfApps variable for the one app we want – Solitaire. We want to store that list in a variable, $listOfApps, so we can use it further. You can run this on your own device without admin rights, since it’s just returning a list. Get-appxpackage returns a list of all the app packages installed for a user profile. Remove-AppxPackage -package $appToRemove.packagefullname $appToRemove = $listOfApps | where-object So we’re back to using PowerShell! The code here is fairly simple, since we’re just targeting one app in particular: $listOfApps = get-appxpackage Although we recommend that method to everyone, there’s a few default apps that can’t be removed because they aren’t in the Business Store. Our very first blog post on Device Advice was The modern way to remove Windows 10 in-box apps without them reinstalling.










Microsoft solitaire collection android if i uninstall and reinstall do i keep my data