Last active
October 17, 2017 02:36
-
-
Save ElJefeDSecurIT/4047cf388447cb44a6f9eb8aa5d7f218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Boxstarter -appPackages script | |
# Author: ElJefeDSecurIT | |
# Last Updated: 2017-10-16 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
# OR | |
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots | |
# | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# windows 10 Enterprise apparently has this thing for Store, that requires some creative DISM package mgmt. | |
# refactored the code to reflect those packages that are provisioned vs available in the users store. | |
# some things get applied to all users, some things get applied by the user's apps. provisioned cmdlets appear to affect the OS store, | |
# the appxPackage cmdlets appear to work against the user's store. | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Uninstall unecessary applications that come with Windows out of the box --- | |
Write-BoxstarterMessage "*** Store Apps Cleanup ***" | |
# 3D Builder | |
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage | |
# Alarms | |
Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage | |
# Autodesk | |
Get-AppxPackage *Autodesk* | Remove-AppxPackage | |
# Phone | |
Write-BoxstarterMessage "Removing Phone" | |
Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage | |
# Sway | |
Get-AppxPackage Microsoft.Office.Sway | Remove-AppxPackage | |
# Keeper | |
Get-AppxPackage *Keeper* | Remove-AppxPackage | |
# Netflix | |
Get-AppxPackage *Netflix* | Remove-AppxPackage | |
#eljefe: oh now hold on there... let's not get carried away... | |
# Get-AppxPackage *Twitter* | Remove-AppxPackage | |
# Plex | |
Write-BoxstarterMessage "Removing Plex" | |
Get-AppxPackage *Plex* | Remove-AppxPackage | |
# Zune Music, Movies & TV | |
#eljefe: with my last words i curse at thee, with my last breath, I spit at thee. | |
Write-BoxstarterMessage "**Removing Zune" | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.ZuneMusic" |Remove-AppxProvisionedPackage -AllUsers -Online | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.ZuneVideo" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Mail & Calendar | |
Write-BoxstarterMessage "*** removing mail, Messaging, calendar, maps, and People ***" | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.windowscommunicationsapps" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Maps | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.WindowsMaps" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# People | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.People" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Messaging | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.Messaging" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Bing Weather, News, Sports, and Finance (Money): | |
Write-BoxstarterMessage "*** Removing Bing Store Apps ***" | |
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage | |
#FCU Provisionssome of these packages | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.BingFinance" |Remove-AppxProvisionedPackage -AllUsers -Online | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.BingNews" |Remove-AppxProvisionedPackage -AllUsers -Online | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.BingSports" |Remove-AppxProvisionedPackage -AllUsers -Online | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.BingWeather" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# BubbleWitch | |
Write-BoxstarterMessage "*** Removing games ***" | |
Get-AppxPackage *BubbleWitch* | Remove-AppxPackage | |
# Candy Crush | |
Get-AppxPackage king.com.CandyCrushSodaSaga | Remove-AppxPackage | |
# Comms Phone | |
Get-AppxPackage Microsoft.CommsPhone | Remove-AppxPackage | |
# March of Empires | |
Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage | |
# Minecraft | |
Get-AppxPackage Microsoft.MinecraftUWP | Remove-AppxPackage | |
# Solitaire | |
Get-AppxPackage *Solitaire* | Remove-AppxPackage | |
# Dell | |
Write-BoxstarterMessage "*** removing social media, Unwanted Apps ***" | |
Get-AppxPackage *Dell* | Remove-AppxPackage | |
# Dropbox | |
Get-AppxPackage *Dropbox* | Remove-AppxPackage | |
Get-AppxPackage *Facebook* | Remove-AppxPackage | |
# Feedback Hub | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.WindowsFeedbackHub" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Get Started | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.Getstarted" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Office Hub | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.MicrosoftOfficeHub" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# One Connect | |
Write-BoxstarterMessage "removing ONeConnect" | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.OneConnect" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# OneNote | |
Write-BoxstarterMessage "Removing OneNote store version" | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.Office.OneNote" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Photos | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.Windows.Photos" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Skype (Metro version) | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.SkypeApp" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Sound Recorder | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.WindowsSoundRecorder" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Sticky Notes | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.MicrosoftStickyNotes" |Remove-AppxProvisionedPackage -AllUsers -Online | |
# Xbox | |
Write-BoxstarterMessage "**removing xbox components" | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "Microsoft.Xbox*" |Remove-AppxProvisionedPackage -AllUsers -Online | |
#Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage | |
#Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage | |
#Get-AppxPackage Microsoft.XboxGameOverlay | Remove-AppxPackage | |
#Get-AppxPackage Microsoft.XboxOneSmartGlass | Remove-AppxPackage | |
#Get-AppxPackage Microsoft.XboxSpeechToTextOverlay | Remove-AppxPackage | |
#--- Restore Temporary Settings --- | |
Write-BoxstarterMessage "re-Enable UAC" | |
Enable-UAC | |
Get-AppxProvisionedPackage -online | where DisplayName -EQ "" |Remove-AppxProvisionedPackage -AllUsers -Online |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment