Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

PowerShell – Clean Windows 10

Posted on March 9, 2016April 2, 2022 By David Kittell

Work In Progress

This will remove some of the default apps along with a couple other fun features to come.

clear
# Many of the below items are from
#https://tweakhound.com/2015/12/09/tweaking-windows-10/
   
#cd ~\Desktop
#mkdir "God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}"
   
function Change-Service ($servicename, $serviceaction, $servicestatuptype)
{
    if (Get-Service $servicename -ErrorAction SilentlyContinue)
        {
            $ServiceDetail=$(Get-Service -Displayname $servicename)
            Write-Output "$servicename ($($ServiceDetail.Name))"
            switch ($serviceaction)
                {
                    "start" {
                        if ($ServiceDetail.Status -eq "Stopped")
                        {
                            Write-Output "    Starting"
                            Start-Service $servicename
                        }
                        else
                        {
                            Write-Output "    Is not Stopped"
                        }
                    }
                    default {
                        if ($ServiceDetail.Status -ne "Stopped")
                        {
                            Write-Output "    Stoping"
                            Stop-Service $servicename
                        }
                        else
                        {
                            Write-Output "    Is already Stopped"
                        }
                    }
                }
   
            if ($ServiceDetail.StartType -ne $servicestatuptype)
            {
                Write-Output "    Setting to $servicestatuptype"
                Set-Service $ServiceDetail.Name -StartupType $servicestatuptype
            }
            else
            {
                Write-Output "    Is already set to $servicestatuptype"
            }
        }
}
   
Change-Service "Block Level Backup Engine Service" stop manual
Change-Service "Certificate Propagation" stop manual
Change-Service "Distributed Link Tracking Client" stop manual
Change-Service "dmwappushsvc" stop manual
Change-Service "HomeGroup Listener" stop manual
Change-Service "HomeGroup Provider" stop manual
Change-Service "IP Helper" stop manual
Change-Service "Portable Device Enumerator Service" stop manual
Change-Service "Remote Registry" stop manual
Change-Service "Secondary Logon" stop manual
Change-Service "Software Protection" stop manual
Change-Service "SSDP Discovery" stop manual
Change-Service "TCP/IP NetBIOS Helper" stop manual
Change-Service "Touch Keyboard and Handwriting Panel Service" stop manual
Change-Service "Windows Media Player Network Sharing Service" stop manual
Change-Service "Windows Time" stop manual
Change-Service AeLookupSvc stop manual
Change-Service ehRecvr stop manual
Change-Service ehSched stop manual
Change-Service ProtectedStorage stop manual
Change-Service Themes stop manual
Change-Service UxSms stop manual
   
# List all apps
$Appx = Get-AppxPackage -AllUsers | select name, packagefullname  | sort name
$appx
  
# Disable Cloud Content
$item = New-Item "REGISTRY::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent"  -Force
Set-ItemProperty $item.PSPath -Name DisableWindowsConsumerFeatures -Type DWord -Value 1
 
function Remove-WindowsApp ($appName)
{
Get-AppxPackage | where-object {$_.name -like "*$appName*"} | Remove-AppxPackage
Get-AppxPackage -AllUsers | where-object {$_.name -like "*$appName*"} | Remove-AppxPackage
}
 
Remove-WindowsApp 3d
Remove-WindowsApp 3dbuilder
# Remove-WindowsApp alarms
Remove-WindowsApp appconnector
Remove-WindowsApp appinstaller
Remove-WindowsApp AutodeskSketchBook
Remove-WindowsApp bing
Remove-WindowsApp bingfinance
Remove-WindowsApp bingnews
Remove-WindowsApp bingsports
Remove-WindowsApp bingweather
Remove-WindowsApp BubbleWitch3Saga
# Remove-WindowsApp calculator
Remove-WindowsApp camera
Remove-WindowsApp candycrushsodasaga
Remove-WindowsApp commsphone
Remove-WindowsApp communi
Remove-WindowsApp communicationsapps
Remove-WindowsApp connectivitystore
Remove-WindowsApp DisneyMagicKingdoms
Remove-WindowsApp DrawboardPDF
Remove-WindowsApp Duolingo
Remove-WindowsApp Eclipse
Remove-WindowsApp FarmVille
Remove-WindowsApp feedback
Remove-WindowsApp FLipboard
Remove-WindowsApp FreshPaint
Remove-WindowsApp getstarted
Remove-WindowsApp holographic
Remove-WindowsApp king.com
Remove-WindowsApp Mahjong
# Remove-WindowsApp maps
Remove-WindowsApp MarchofEmpires
Remove-WindowsApp messaging
Remove-WindowsApp MicrosoftSudoku
Remove-WindowsApp mspaint
Remove-WindowsApp NetworkSpeedTest
Remove-WindowsApp NYTCrossword
Remove-WindowsApp officehub
Remove-WindowsApp oneconnect
Remove-WindowsApp onenote
Remove-WindowsApp pandora
# Remove-WindowsApp people
Remove-WindowsApp phone
# Remove-WindowsApp photo
# Remove-WindowsApp photos
Remove-WindowsApp skypeapp
Remove-WindowsApp solit
Remove-WindowsApp solitaire
Remove-WindowsApp soundrec
Remove-WindowsApp soundrecorder
Remove-WindowsApp Spotify
Remove-WindowsApp sticky
Remove-WindowsApp sway
Remove-WindowsApp twitter
Remove-WindowsApp wallet
Remove-WindowsApp windowscommunicationsapps
Remove-WindowsApp windowsphone
#Remove-WindowsApp windowsstore
Remove-WindowsApp witch 
Remove-WindowsApp Wunderlist
Remove-WindowsApp xbox
Remove-WindowsApp zune
Remove-WindowsApp zunemusic
Remove-WindowsApp zunevideo
   
# To Reinstall all of the above run the below
# Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\\AppXManifest.xml"}
Originally Posted on March 9, 2016
Last Updated on April 2, 2022
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell Windows

Post navigation

Previous post
Next post

Related Posts

Recover/Replace MySQL Root Password – UNIX

Posted on November 19, 2015December 30, 2016

Forgetting or never having the root password for a MySQL database can be rather difficult if it is now your job to support it. Note: You will need root access on the UNIX box to follow these commands. # Debian / Ubuntu sudo /etc/init.d/mysql stop # CentOS / Red Hat…

Read More

Bash – Download YouTube Music

Posted on August 7, 2018June 30, 2019

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl sudo apt update sudo apt upgrade -y sudo apt install youtube-dl python ffmpeg net-tools -y # Install YouTube Downloader CLI brew install youtube-dl ffmpeg # https://github.com/rg3/youtube-dl # Download YouTube video, convert the video to MP3 and delete the original video…

Read More

Mac OSX – DNSMasq Ad Block DNS

Posted on July 30, 2016October 21, 2016

# Get IP – Start ip=$(ipconfig getifaddr en0) nen=0 while [ -z $ip ]; do let nen=nen+1 eth="en$nen" #echo $eth ip=$(ipconfig getifaddr $(echo $eth)) done echo $ip # Get IP – Stop # Install Homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Update your homebrew installation brew upgrade # Install dnsmasq…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes