Skip to content

Instantly share code, notes, and snippets.

@danjpadgett
Last active March 28, 2018 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danjpadgett/283ad2e7e936a0ceff14c7f137d7cd80 to your computer and use it in GitHub Desktop.
Save danjpadgett/283ad2e7e936a0ceff14c7f137d7cd80 to your computer and use it in GitHub Desktop.
Customise-Win10.ps1
<#
.SYNOPSIS
Sets W10 1709 Options
.DESCRIPTION
Sets W10 1709 Options
.PARAMETER <Parameter_Name>
None
.INPUTS
None
.OUTPUTS
None
.NOTES
Version: 4.0
Author: dpadgett@execmgr.net
Creation Date: 150917
Purpose/Change: Initial script development
.EXAMPLE
None
#>
$PublicFolder = $env:PUBLIC
$ProgramFilesx86Folder = ${env:ProgramFiles(x86)}
$ProgData = ${env:ProgramData}
$StartInPath = Split-Path $MyInvocation.MyCommand.Path -Parent
#Copy Files
#Set Start Menu for 1709
Write-Host "Set Start Menu for 1709"
Try
{
Copy-Item "$StartInPath\Internet Explorer.lnk" -Destination "$env:ProgramData\Microsoft\Windows\Start Menu\Programs" #Sets IE shortcut for w10 start to function
#Set Startlayout for Office 2016
Import-StartLayout -LayoutPath "$StartInPath\start1703-office2k16.xml" -MountPath $env:SystemDrive\ -Verbose #Sets w10 start menu
}
Catch
{
Write-Host "Error Output..." -ForegroundColor Yellow ; `
$Error[0].Exception ; `
$Error[0].InvocationInfo
}
#Remove Apps
# This script removes unwanted Apps that come with Windows. If you do not want
# to remove certain Apps comment out the corresponding lines below.
Try
{
echo "Uninstalling Default Apps"
$apps = @(
# default Windows 10 apps
"Microsoft.3DBuilder"
"Microsoft.Appconnector"
"Microsoft.BingFinance"
"Microsoft.BingNews"
"Microsoft.BingSports"
#"Microsoft.BingWeather"
#"Microsoft.FreshPaint"
"Microsoft.Getstarted"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection"
#"Microsoft.MicrosoftStickyNotes"
"Microsoft.Office.OneNote"
"Microsoft.OneConnect"
"Microsoft.People"
"Microsoft.SkypeApp"
#"Microsoft.Windows.Photos"
#"Microsoft.WindowsAlarms"
#"Microsoft.WindowsCalculator"
"Microsoft.WindowsCamera"
#"Microsoft.WindowsMaps"
"Microsoft.WindowsPhone"
#"Microsoft.WindowsSoundRecorder"
#"Microsoft.WindowsStore"
"Microsoft.XboxApp"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
"microsoft.windowscommunicationsapps"
"Microsoft.MinecraftUWP"
# Threshold 2 apps
"Microsoft.CommsPhone"
"Microsoft.ConnectivityStore"
"Microsoft.Messaging"
"Microsoft.Office.Sway"
"Microsoft.OneConnect"
"Microsoft.WindowsFeedbackHub"
#Redstone apps
"Microsoft.BingFoodAndDrink"
"Microsoft.BingTravel"
"Microsoft.BingHealthAndFitness"
"Microsoft.WindowsReadingList"
"Microsoft.Microsoft3DViewer"
"Microsoft.Print3D"
# non-Microsoft
"9E2F88E3.Twitter"
"PandoraMediaInc.29680B314EFC2"
"Flipboard.Flipboard"
"ShazamEntertainmentLtd.Shazam"
"king.com.CandyCrushSaga"
"king.com.CandyCrushSodaSaga"
"king.com.*"
"ClearChannelRadioDigital.iHeartRadio"
"4DF9E0F8.Netflix"
"6Wunderkinder.Wunderlist"
"Drawboard.DrawboardPDF"
"2FE3CB00.PicsArt-PhotoStudio"
"D52A8D61.FarmVille2CountryEscape"
"TuneIn.TuneInRadio"
"GAMELOFTSA.Asphalt8Airborne"
"TheNewYorkTimes.NYTCrossword"
"DB6EA5DB.CyberLinkMediaSuiteEssentials"
"Facebook.Facebook"
"flaregamesGmbH.RoyalRevolt2"
"Playtika.CaesarsSlotsFreeCasino"
# apps which cannot be removed using Remove-AppxPackage
#"Microsoft.BioEnrollment"
#"Microsoft.MicrosoftEdge"
#"Microsoft.Windows.Cortana"
#"Microsoft.WindowsFeedback"
#"Microsoft.XboxGameCallableUI"
#"Microsoft.XboxIdentityProvider"
#"Windows.ContactSupport"
)
foreach ($app in $apps) {
echo "Trying to remove $app"
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online |
where DisplayName -EQ $app |
Remove-AppxProvisionedPackage -Online
}
}
Catch
{
Write-Host "Error Output..." -ForegroundColor Yellow ; `
$Error[0].Exception ; `
$Error[0].InvocationInfo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment