Browse Source

:retab scripts for consistent indent

pull/2/head
Alex Hirsch 9 years ago
parent
commit
63c4668f64
  1. 30
      scripts/disable-services.ps1
  2. 8
      scripts/disable-windows-features.ps1
  3. 2
      scripts/fix-privacy-settings.ps1
  4. 68
      scripts/remove-default-apps.ps1
  5. 6
      scripts/remove-onedrive.ps1

30
scripts/disable-services.ps1

@ -3,22 +3,22 @@
# certain services comment out the corresponding lines below. # certain services comment out the corresponding lines below.
$services = @( $services = @(
"HomeGroupListener" "HomeGroupListener"
"HomeGroupProvider" "HomeGroupProvider"
"MapsBroker" "MapsBroker"
"NetTcpPortSharing" "NetTcpPortSharing"
"RemoteAccess" "RemoteAccess"
"RemoteRegistry" "RemoteRegistry"
"SharedAccess" "SharedAccess"
"WbioSrvc" "WbioSrvc"
"XblAuthManager" "XblAuthManager"
"XblGameSave" "XblGameSave"
"XboxNetApiSvc" "XboxNetApiSvc"
"dmwappushservice" "dmwappushservice"
"lfsvc" "lfsvc"
#"wscsvc" #"wscsvc"
) )
foreach ($service in $services) { foreach ($service in $services) {
Get-Service -Name $service | Set-Service -StartupType Disabled Get-Service -Name $service | Set-Service -StartupType Disabled
} }

8
scripts/disable-windows-features.ps1

@ -3,10 +3,10 @@
# disable certain features comment out the corresponding lines below. # disable certain features comment out the corresponding lines below.
$features = @( $features = @(
"Internet-Explorer-Optional-amd64" "Internet-Explorer-Optional-amd64"
"MediaPlayback" "MediaPlayback"
"WindowsMediaPlayer" "WindowsMediaPlayer"
"WorkFolders-Client" "WorkFolders-Client"
) )
Disable-WindowsOptionalFeature -Online -NoRestart -FeatureName $features Disable-WindowsOptionalFeature -Online -NoRestart -FeatureName $features

2
scripts/fix-privacy-settings.ps1

@ -1,4 +1,4 @@
# Description: # Description:
# This script will try to fix many of the privacy settings for the user. This # This script will try to fix many of the privacy settings for the user. This
# is work in progress! # is work in progress!

68
scripts/remove-default-apps.ps1

@ -4,42 +4,42 @@
# the corresponding lines below. # the corresponding lines below.
$apps = @( $apps = @(
"Microsoft.3DBuilder" "Microsoft.3DBuilder"
"Microsoft.Appconnector" "Microsoft.Appconnector"
"Microsoft.BingFinance" "Microsoft.BingFinance"
"Microsoft.BingNews" "Microsoft.BingNews"
"Microsoft.BingSports" "Microsoft.BingSports"
"Microsoft.BingWeather" "Microsoft.BingWeather"
"Microsoft.BioEnrollment" "Microsoft.BioEnrollment"
"Microsoft.Getstarted" "Microsoft.Getstarted"
#"Microsoft.MicrosoftEdge" #"Microsoft.MicrosoftEdge"
"Microsoft.MicrosoftOfficeHub" "Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection" "Microsoft.MicrosoftSolitaireCollection"
"Microsoft.Office.OneNote" "Microsoft.Office.OneNote"
"Microsoft.People" "Microsoft.People"
"Microsoft.SkypeApp" "Microsoft.SkypeApp"
"Microsoft.Windows.Cortana" "Microsoft.Windows.Cortana"
"Microsoft.Windows.Photos" "Microsoft.Windows.Photos"
"Microsoft.WindowsAlarms" "Microsoft.WindowsAlarms"
"Microsoft.WindowsCalculator" "Microsoft.WindowsCalculator"
"Microsoft.WindowsCamera" "Microsoft.WindowsCamera"
"Microsoft.WindowsFeedback" "Microsoft.WindowsFeedback"
"Microsoft.WindowsMaps" "Microsoft.WindowsMaps"
"Microsoft.WindowsPhone" "Microsoft.WindowsPhone"
"Microsoft.WindowsSoundRecorder" "Microsoft.WindowsSoundRecorder"
"Microsoft.WindowsStore" "Microsoft.WindowsStore"
"Microsoft.XboxApp" "Microsoft.XboxApp"
"Microsoft.XboxGameCallableUI" "Microsoft.XboxGameCallableUI"
"Microsoft.XboxIdentityProvider" "Microsoft.XboxIdentityProvider"
"Microsoft.ZuneMusic" "Microsoft.ZuneMusic"
"Microsoft.ZuneVideo" "Microsoft.ZuneVideo"
"microsoft.windowscommunicationsapps" "microsoft.windowscommunicationsapps"
) )
foreach ($app in $apps) { foreach ($app in $apps) {
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Get-AppXProvisionedPackage -Online |
where DisplayName -EQ $app | where DisplayName -EQ $app |
Remove-AppxProvisionedPackage -Online Remove-AppxProvisionedPackage -Online
} }

6
scripts/remove-onedrive.ps1

@ -1,4 +1,4 @@
# Description: # Description:
# This script will remove and disable OneDrive integration. # This script will remove and disable OneDrive integration.
echo "Kill OneDrive process" echo "Kill OneDrive process"
@ -7,10 +7,10 @@ taskkill.exe /F /IM "explorer.exe"
echo "Remove OneDrive" echo "Remove OneDrive"
if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") { if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") {
& "$env:systemroot\System32\OneDriveSetup.exe" /uninstall & "$env:systemroot\System32\OneDriveSetup.exe" /uninstall
} }
if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") { if (Test-Path "$env:systemroot\System32\OneDriveSetup.exe") {
& "$env:systemroot\System32\OneDriveSetup.exe" /uninstall & "$env:systemroot\System32\OneDriveSetup.exe" /uninstall
} }
echo "Removing OneDrive leftovers" echo "Removing OneDrive leftovers"

Loading…
Cancel
Save