From 63c4668f6469cc03c0ee02bcc00ad5473e60d037 Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Fri, 7 Aug 2015 15:55:13 +0200 Subject: [PATCH] :retab scripts for consistent indent --- scripts/disable-services.ps1 | 30 ++++++------ scripts/disable-windows-features.ps1 | 8 ++-- scripts/fix-privacy-settings.ps1 | 2 +- scripts/remove-default-apps.ps1 | 68 ++++++++++++++-------------- scripts/remove-onedrive.ps1 | 6 +-- 5 files changed, 57 insertions(+), 57 deletions(-) diff --git a/scripts/disable-services.ps1 b/scripts/disable-services.ps1 index a6b94e2..df52f69 100644 --- a/scripts/disable-services.ps1 +++ b/scripts/disable-services.ps1 @@ -3,22 +3,22 @@ # certain services comment out the corresponding lines below. $services = @( - "HomeGroupListener" - "HomeGroupProvider" - "MapsBroker" - "NetTcpPortSharing" - "RemoteAccess" - "RemoteRegistry" - "SharedAccess" - "WbioSrvc" - "XblAuthManager" - "XblGameSave" - "XboxNetApiSvc" - "dmwappushservice" - "lfsvc" - #"wscsvc" + "HomeGroupListener" + "HomeGroupProvider" + "MapsBroker" + "NetTcpPortSharing" + "RemoteAccess" + "RemoteRegistry" + "SharedAccess" + "WbioSrvc" + "XblAuthManager" + "XblGameSave" + "XboxNetApiSvc" + "dmwappushservice" + "lfsvc" + #"wscsvc" ) foreach ($service in $services) { - Get-Service -Name $service | Set-Service -StartupType Disabled + Get-Service -Name $service | Set-Service -StartupType Disabled } diff --git a/scripts/disable-windows-features.ps1 b/scripts/disable-windows-features.ps1 index 979f0bd..10020eb 100644 --- a/scripts/disable-windows-features.ps1 +++ b/scripts/disable-windows-features.ps1 @@ -3,10 +3,10 @@ # disable certain features comment out the corresponding lines below. $features = @( - "Internet-Explorer-Optional-amd64" - "MediaPlayback" - "WindowsMediaPlayer" - "WorkFolders-Client" + "Internet-Explorer-Optional-amd64" + "MediaPlayback" + "WindowsMediaPlayer" + "WorkFolders-Client" ) Disable-WindowsOptionalFeature -Online -NoRestart -FeatureName $features diff --git a/scripts/fix-privacy-settings.ps1 b/scripts/fix-privacy-settings.ps1 index 2eea1b4..8c58096 100644 --- a/scripts/fix-privacy-settings.ps1 +++ b/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 # is work in progress! diff --git a/scripts/remove-default-apps.ps1 b/scripts/remove-default-apps.ps1 index eb55cef..df9b455 100644 --- a/scripts/remove-default-apps.ps1 +++ b/scripts/remove-default-apps.ps1 @@ -4,42 +4,42 @@ # the corresponding lines below. $apps = @( - "Microsoft.3DBuilder" - "Microsoft.Appconnector" - "Microsoft.BingFinance" - "Microsoft.BingNews" - "Microsoft.BingSports" - "Microsoft.BingWeather" - "Microsoft.BioEnrollment" - "Microsoft.Getstarted" - #"Microsoft.MicrosoftEdge" - "Microsoft.MicrosoftOfficeHub" - "Microsoft.MicrosoftSolitaireCollection" - "Microsoft.Office.OneNote" - "Microsoft.People" - "Microsoft.SkypeApp" - "Microsoft.Windows.Cortana" - "Microsoft.Windows.Photos" - "Microsoft.WindowsAlarms" - "Microsoft.WindowsCalculator" - "Microsoft.WindowsCamera" - "Microsoft.WindowsFeedback" - "Microsoft.WindowsMaps" - "Microsoft.WindowsPhone" - "Microsoft.WindowsSoundRecorder" - "Microsoft.WindowsStore" - "Microsoft.XboxApp" - "Microsoft.XboxGameCallableUI" - "Microsoft.XboxIdentityProvider" - "Microsoft.ZuneMusic" - "Microsoft.ZuneVideo" - "microsoft.windowscommunicationsapps" + "Microsoft.3DBuilder" + "Microsoft.Appconnector" + "Microsoft.BingFinance" + "Microsoft.BingNews" + "Microsoft.BingSports" + "Microsoft.BingWeather" + "Microsoft.BioEnrollment" + "Microsoft.Getstarted" + #"Microsoft.MicrosoftEdge" + "Microsoft.MicrosoftOfficeHub" + "Microsoft.MicrosoftSolitaireCollection" + "Microsoft.Office.OneNote" + "Microsoft.People" + "Microsoft.SkypeApp" + "Microsoft.Windows.Cortana" + "Microsoft.Windows.Photos" + "Microsoft.WindowsAlarms" + "Microsoft.WindowsCalculator" + "Microsoft.WindowsCamera" + "Microsoft.WindowsFeedback" + "Microsoft.WindowsMaps" + "Microsoft.WindowsPhone" + "Microsoft.WindowsSoundRecorder" + "Microsoft.WindowsStore" + "Microsoft.XboxApp" + "Microsoft.XboxGameCallableUI" + "Microsoft.XboxIdentityProvider" + "Microsoft.ZuneMusic" + "Microsoft.ZuneVideo" + "microsoft.windowscommunicationsapps" ) foreach ($app in $apps) { - Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage + Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage - Get-AppXProvisionedPackage -Online | - where DisplayName -EQ $app | - Remove-AppxProvisionedPackage -Online + Get-AppXProvisionedPackage -Online | + where DisplayName -EQ $app | + Remove-AppxProvisionedPackage -Online } diff --git a/scripts/remove-onedrive.ps1 b/scripts/remove-onedrive.ps1 index 0706f9e..c74673c 100644 --- a/scripts/remove-onedrive.ps1 +++ b/scripts/remove-onedrive.ps1 @@ -1,4 +1,4 @@ -# Description: +# Description: # This script will remove and disable OneDrive integration. echo "Kill OneDrive process" @@ -7,10 +7,10 @@ taskkill.exe /F /IM "explorer.exe" echo "Remove OneDrive" 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") { - & "$env:systemroot\System32\OneDriveSetup.exe" /uninstall + & "$env:systemroot\System32\OneDriveSetup.exe" /uninstall } echo "Removing OneDrive leftovers"