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.
$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
}

8
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

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
# is work in progress!

68
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
}

6
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"

Loading…
Cancel
Save