Git Product home page Git Product logo

debloat-windows-10's Introduction

Bonfire

debloat-windows-10's People

Contributors

4oo4 avatar angelsl avatar aramboi avatar atroxes avatar austinmroczek avatar basictheprogram avatar bgraeb avatar chamele0n avatar chirishman avatar hinzigers avatar keescbakker avatar kyedavey avatar ledragox avatar luffitys avatar mabananet avatar maci0 avatar majkinetor avatar mmikeww avatar ogmios-voice avatar paulohpf avatar pythontryhard avatar qtrrb avatar teselka avatar tiagoquix avatar timi7007 avatar tumpio avatar urras avatar w4rh4wk avatar zoran-jankov avatar zpfln avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

debloat-windows-10's Issues

Windows 10 updates nag screen

After applying optimize-windows-update.ps1 nag screen starts to appear if there's updates available:
screenshot

The only solution that I've found is to restrict execution rights for MusNotification.exe and MusNotificationUx.exe to everyone (see here and there)

FYI: It blocks mouse but doesn't block keyboard, so it can be killed from task manager without any problems ๐Ÿ˜„

install-basic-software.ps1 returns parse error

Wen script is called, PS returns the following:

At C:\Users\michi\OneDrive\Documents\Debloat-Windows-10-master\utils\install-basic-software.ps1:53 char:27
+ rm "/SysinternalsSuite.zip"
+                           ~
The string is missing the terminator: ".
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString


disable-services interferes with Sysprep

It appears that the dmwappushservice needs to be started in order for sysprep to complete properly.
I followed these directions to resolve it:
1.Type the following command to set the startup type:
sc config dmwappushservice start= delayed-auto

2.Type the following command to start the service:
sc start dmwappushservice

OneDrive disable erroring

Using the latest git master. I'm running PowerShell as admin, of course. Windows 10 Home 64-bit.

PS D:\Downloads\Apps\Debloat-Windows-10\scripts> .\remove-onedrive.ps1
Kill OneDrive process
ERROR: The process "OneDrive.exe" not found.
SUCCESS: The process "explorer.exe" with PID 4264 has been terminated.
Remove OneDrive
Removing OneDrive leftovers
rm : Cannot remove item C:\Users\nyuszika7h\AppData\Local\Microsoft\OneDrive\17.3.5907.0716\amd64\FileSyncShell64.dll:
Access to the path 'FileSyncShell64.dll' is denied.
At D:\Downloads\Apps\Debloat-Windows-10\scripts\remove-onedrive.ps1:19 char:1
+ rm -r -Force "$env:localappdata\Microsoft\OneDrive"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (FileSyncShell64.dll:FileInfo) [Remove-Item], UnauthorizedAccessExcept
   ion
    + FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
rm : Cannot remove item C:\Users\nyuszika7h\AppData\Local\Microsoft\OneDrive\17.3.5907.0716\amd64: The directory is
not empty.
At D:\Downloads\Apps\Debloat-Windows-10\scripts\remove-onedrive.ps1:19 char:1
+ rm -r -Force "$env:localappdata\Microsoft\OneDrive"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (amd64:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
rm : Cannot remove item C:\Users\nyuszika7h\AppData\Local\Microsoft\OneDrive\17.3.5907.0716\FileSyncShell.dll: Access
to the path 'FileSyncShell.dll' is denied.
At D:\Downloads\Apps\Debloat-Windows-10\scripts\remove-onedrive.ps1:19 char:1
+ rm -r -Force "$env:localappdata\Microsoft\OneDrive"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (FileSyncShell.dll:FileInfo) [Remove-Item], UnauthorizedAccessExceptio
   n
    + FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
rm : Cannot remove item C:\Users\nyuszika7h\AppData\Local\Microsoft\OneDrive\17.3.5907.0716\LoggingPlatform.dll:
Access to the path 'LoggingPlatform.dll' is denied.
At D:\Downloads\Apps\Debloat-Windows-10\scripts\remove-onedrive.ps1:19 char:1
+ rm -r -Force "$env:localappdata\Microsoft\OneDrive"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (LoggingPlatform.dll:FileInfo) [Remove-Item], UnauthorizedAccessExcept
   ion
    + FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
rm : Cannot remove item C:\Users\nyuszika7h\AppData\Local\Microsoft\OneDrive\17.3.5907.0716\Telemetry.dll: Access to
the path 'Telemetry.dll' is denied.
At D:\Downloads\Apps\Debloat-Windows-10\scripts\remove-onedrive.ps1:19 char:1
+ rm -r -Force "$env:localappdata\Microsoft\OneDrive"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (Telemetry.dll:FileInfo) [Remove-Item], UnauthorizedAccessException
    + FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
rm : Cannot remove item C:\Users\nyuszika7h\AppData\Local\Microsoft\OneDrive\17.3.5907.0716: The directory is not
empty.
At D:\Downloads\Apps\Debloat-Windows-10\scripts\remove-onedrive.ps1:19 char:1
+ rm -r -Force "$env:localappdata\Microsoft\OneDrive"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (17.3.5907.0716:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
rm : Cannot remove item C:\Users\nyuszika7h\AppData\Local\Microsoft\OneDrive: The directory is not empty.
At D:\Downloads\Apps\Debloat-Windows-10\scripts\remove-onedrive.ps1:19 char:1
+ rm -r -Force "$env:localappdata\Microsoft\OneDrive"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\nyuszi...rosoft\OneDrive:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
rm : Cannot find path 'C:\OneDriveTemp' because it does not exist.
At D:\Downloads\Apps\Debloat-Windows-10\scripts\remove-onedrive.ps1:22 char:1
+ rm -r -Force "C:\OneDriveTemp"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\OneDriveTemp:String) [Remove-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

Disable OneDrive via Group Policies
Remove Onedrive from explorer sidebar
Removing startmenu entry
Restarting explorer

Chaos Communication Camp 2015 ehlo

Just dropping this notice here, I am currently at the Chaos Communication Camp so if you want to come by and say hello I am usually located at the IT-Syndikat village between the great people from Spain and Scotland.

Need more details? --> [email protected]

can't open local website

after i use this remove-default-apps.ps1 and remove-onedrive.ps1, i can't open our local websites, like http://myweb , please help me check this, thank you.

Make each script operations idempotent

I think the registry operations already have this property, but when running some of the other scripts more than once (ex. remove-telemetry.ps1), the changes to the system add up.

Errors after anniversary update

I got a lot of errors when applying scripts immediately after clean install of win 10 x64 enterprise with anniversary update included (en_windows_10_enterprise_version_1607_updated_jul_2016_x64_dvd_9054264.iso)

The few that i can remember:

  • line 73 in remove-default-apps.ps1 throws an error, so apps are not completely uninstalled
  • defender uninstall throws some null object errors
  • some registry entries don't exist

Running Stock Script Causes Windows Store to Error

After running the block-telemetry script, the Windows Store seems to be unable to get a license file.

When attempting to update or install an app, the Store errors out with a generic 80072EFD code right when it attempts to ping the license server.

Don't think its the hosts file because when running the script without hosts entries, I still get the same error.

Continuing some tests

MarkC Mouse Acceleration Tweak Undo

Hello all,
The script that optimizes the user interface also applies the markc mouse acceleration tweak. I've applied it, and I don't like the new mouse sensitivity. How do I revert this change to the default sensitivity?
Thank you in advance

Does not update to anniversary update

When I try to update to anniversary update it restarts computer, after restart it blinks and restarts back to old version without any changes. I think it may be because of debloat patch

Scheduled Task Revision

There are at least a few scheduled tasks which get disabled when running the disable-scheduled-tasks.ps1 script that are essential for general use. For example, "\Microsoft\Windows\SystemRestore\SR" which creates regular system restore points. Some others also make assumptions about the configuration of the system hardware, such as the ones that disable the maintenance tasks for SSHD's.

I propose that script should be generic by default, only disabling things such as telemetry collection, and have more specific configurations as optional.

Describe how to Run as Admin on ReadMe

That would sure be helpful in the read me... I'm not familiar with Powershell... only use windows for games and the 10 tons of hidden bloat is disturbing. I'm sure I'll figure it out, but it's something that should really be on the ReadMe.

Thank you!

EDIT: Turns out it's quite involved to run them all as administrator... I trust your sensible defaults and really don't care much about... fire away. It would be nice to have a run all button/command.
http://superuser.com/questions/108207/how-to-run-a-powershell-script-as-administrator

EDIT #2: Wow, Tip http://superuser.com/a/108405 works fantastically, all your scripts should have it... with an include of course.

New script ideas

Some more ideas for new scripts:

  • Enable title bar color 1 This is officially in new preview build. 10
  • Enable God Mode 2
  • Disable new lock screen 3
  • Disable new volume control 4
  • Disable sticky keys 5
  • Disable automatic device driver updates 6
  • Enable legacy boot menu 7
  • Remove quick access 8
  • Disabling Live Tile Notifications in the Start Menu (script group could be "optimize-startmenu") 9
  • Disable notifications center 11
  • Disable unwanted scheduled tasks 12 14

utils:

  • Run disk clean up tool with more options (cleanmgr /sageset:1 && cleanmgr /sagerun:1)
  • Boot to safe mode (bcdedit /set {current} safeboot minimal && shutdown /r /t 00) or Boot to Advanced start up options menu (shutdown /o /r /t 00)

More unwanted services

Services that are disabled in those other scripts:

First and second:

#"Disable tracking services"
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config TrkWks start= disabled
sc config WMPNetworkSvc start= disabled

#"Disable WAP Push Message Routing Service"
sc config dmwappushservice start= disabled

#"Disable Windows Search"
sc config WSearch start= disabled

#"Disable Windows Defender"
sc config WinDefend start= disabled
sc config WdNisSvc start= disabled

Third disables pretty much everything.
http://akq.fi/w10/Win_10_tweakkeja_osa_3.txt

Anything that should be added?

`remove-default-apps.ps1` fails to remove some apps

remove-default-apps.ps1 fails to remove the following apps:

  • Microsoft.BioEnrollment
  • Microsoft.WindowsFeedback
  • Microsoft.XboxGameCallableUI
  • Microsoft.XboxIdentityProvider

The following errors occur:

Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package Microsoft.BioEnrollment_10.0.10240.16384_neutral__cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.BioEnrollment_cw5n1h2txyewy failed. This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator can
attempt to remove the app from the computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 26496f78-d8e6-0001-8c9b-4b26e6d8d001 in the Event Log or use the command line Get-AppxLog -ActivityID
26496f78-d8e6-0001-8c9b-4b26e6d8d001
At C:\Projects\Debloat-Windows-10\scripts\remove-default-apps.ps1:45 char:44
+     Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
+                                            ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.BioEn...__cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package Microsoft.WindowsFeedback_10.0.10240.16393_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\WindowsFeedback_cw5n1h2txyewy failed. This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to
remove the app from the computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 26496f78-d8e6-0003-9bdc-4a26e6d8d001 in the Event Log or use the command line Get-AppxLog -ActivityID
26496f78-d8e6-0003-9bdc-4a26e6d8d001
At C:\Projects\Debloat-Windows-10\scripts\remove-default-apps.ps1:45 char:44
+     Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
+                                            ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.Windo...l_cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package Microsoft.XboxGameCallableUI_1000.10240.16384.0_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.XboxGameCallableUI_cw5n1h2txyewy failed. This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator can
attempt to remove the app from the computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 26496f78-d8e6-0003-c9e0-4a26e6d8d001 in the Event Log or use the command line Get-AppxLog -ActivityID
26496f78-d8e6-0003-c9e0-4a26e6d8d001
At C:\Projects\Debloat-Windows-10\scripts\remove-default-apps.ps1:45 char:44
+     Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
+                                            ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.XboxG...l_cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CFA)
error 0x80070032: AppX Deployment Remove operation on package Microsoft.XboxIdentityProvider_1000.10240.16384.0_neutral_neutral_cw5n1h2txyewy from:
C:\Windows\SystemApps\Microsoft.XboxIdentityProvider_cw5n1h2txyewy failed. This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator
can attempt to remove the app from the computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app.
NOTE: For additional information, look for [ActivityId] 26496f78-d8e6-0001-7aaa-4b26e6d8d001 in the Event Log or use the command line Get-AppxLog -ActivityID
26496f78-d8e6-0001-7aaa-4b26e6d8d001
At C:\Projects\Debloat-Windows-10\scripts\remove-default-apps.ps1:45 char:44
+     Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
+                                            ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.XboxI...l_cw5n1h2txyewy:String) [Remove-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

It might be that these apps can't be uninstalled this way and should just be removed from the list in the script.

Env: Windows 10 Home x64 (upgraded from 8.1)

disable-telemetry merging

disable-telemetry was merged to disable-windows-features. I think it should remain in its own script, like block-telemetry-domains.ps1.

Local Windows Search Unavailable

I'm not sure what caused it, but after running the scripts, the Windows Search toolbar in the taskbar did not work. I made sure to re-enable the service, but it did not make a difference. From what I could see referenced in the scripts, I only saw modifications to limit the search to local files and not removed completely (other than the service being disabled).

"turn on windows security center service" notifications

I keep getting this warning after running a script that disabled it... Is there way to tell windows to shut up. I've already right clicked it and asked it to stop giving me notifications from this "app" but that doesn't work.

Debloat start menu

When you install Windows for the first time start menu is full of garbage. Would it be possible to delete all of it or some specific tools ?

Sfc scannow & dism image restore

I just noticed that I can no longer fun sfc /scannow now or dism image restore due to complaint mainly that it can't connect to the windows update server.

Restoring a few apps

So I ran the remove apps ps script, all fine and well til I found myself in need of the store and calc :-)

So I tried restoring them but when I run the store or calc it tells me that I need to choose a program to run it with (none is installed so I can't choose any)

Any suggestions?

Unable to block Microsoft Telemetry

I tried to use the tool but Microsoft telemetry pop-ups again after restart. Also, I want to have fingerprint enabled. Please guide how to reverse that.

Thanks

Ever want to use Skype again?

Hi,

After reinstalling Windows 10 Pro N x64 and using these great Debloat tools, I had trouble using Skype. Not the Entreprise version that comes with the OS, just the regular one.

Well I went to the "hosts" file in "C:\Windows\System32\drivers\etc" and removed the lines where "skype" appeared.

For the users of the Block-Telemetry script, I recommend quoting the lines as follows:

File:

Debloat-Windows-10/scripts/block-telemetry.ps1

Lines:
# "ui.skype.com",
# "pricelist.skype.com"
# "apps.skype.com"

This will save you some trouble. ๐Ÿ‘
Have a nice day!

Nicolas / Mole

Running remove-default-apps.ps1 causes the windows store not to open

I'm preparing an image to use with MDT/SCCM. I've used your script to clean up the provisioned apps as well local user apps. I commented out the Store in the list. While windows doesn't seem to uninstall it, the app will no longer open or update any other apps (causing them to not open either. Calculator, Groove Music, etc.) - The apps it does remove are removed completely from the start menu.

I'm on build 1511. I only made a few changes to your script to make it work from my batch which kickstarts it. (I copied the takeown module into the local directory)

This is what it looks like with my mods:


#   Description:
# This script removes unwanted Apps that come with Windows. If you  do not want
# to remove certain Apps comment out the corresponding lines below.

ls -Recurse *.psm1 | Unblock-File
ls -Recurse *.ps1 | Unblock-File

Import-Module -DisableNameChecking .\take-own.psm1

echo "Elevating priviledges for this process"
do {} until (Elevate-Privileges SeTakeOwnershipPrivilege)

echo "Uninstalling default apps"
$apps = @(
    # default Windows 10 apps
    "Microsoft.3DBuilder"
    "Microsoft.Appconnector"
    "Microsoft.BingFinance"
    "Microsoft.BingNews"
    "Microsoft.BingSports"
    "Microsoft.BingWeather"
    "Microsoft.Getstarted"
    "Microsoft.MicrosoftOfficeHub"
    "Microsoft.MicrosoftSolitaireCollection"
    "Microsoft.Office.OneNote"
    "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"

    # non-Microsoft
    "9E2F88E3.Twitter"
    "Flipboard.Flipboard"
    "ShazamEntertainmentLtd.Shazam"
    "king.com.CandyCrushSaga"
    "ClearChannelRadioDigital.iHeartRadio"

    # 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) {
    Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage

    Get-AppXProvisionedPackage -Online |
        where DisplayName -EQ $app |
        Remove-AppxProvisionedPackage -Online
}

Permission Denied?

After I set the executionpolicy to unrestricted I try "ls -Recurse *.ps1 | Unblock-File" and get this..

ls : Access to the path 'C:\Windows\system32\LogFiles\WMI\RtBackup' is denied.
At line:1 char:1

  • ls -Recurse *.ps1 | Unblock-File
  •   + CategoryInfo          : PermissionDenied: (C:\Windows\syst...es\WMI\RtBackup:String) [Get-ChildItem], U
     edAccessException
      + FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand
    
    

I know running as admin doesn't grant access to system but is there something I'm doing wrong or a step I overlooked?

Isn't "mkdir -Force" too destructive?

I noticed your script is using the -Force flag on mkdir. I don't know Powershell enough but isn't that flag too destructive?

I was trying to add the new keys for ContentDeliveryManager and for some reason if I add that force flag it deletes all the subfolders of the target. I end it up using:

mkdir "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -ErrorAction SilentlyContinue
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "FeatureManagementEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "OemPreInstalledAppsEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "PreInstalledAppsEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "RotatingLockScreenEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "RotatingLockScreenOverlayEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SilentInstalledAppsEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SoftLandingEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SubscribedContentEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "SystemPaneSuggestionsEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "PreInstalledAppsEverEnabled" 0
sp "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" "ContentDeliveryAllowed" 0

Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SuggestedApps"

Am I wrong?

disable-services.ps1 causes Security Center messages in the Action Center

After running disable-services.ps1 there is a constant stream of error messages asking for the security center to be enabled :
Windows Action Center
(I prefer the default action center because that is how I open up the ImmersiveSettings app to check for Windows Updates)

This is caused by :
"wscsvc" # Windows Security Center Service

I would not recommend taking this away, as I am sure many people would see it as an invasive service

However, I would suggest adding something to your script in order to prevent these messages from popping up constantly.

I am searching how to remove these messages, and I will post back when/if I find a solution.

and thanks a bunch for the scripts ๐Ÿ˜ƒ

Xbox One Windows Adapter Stops working

I have found running remove-default-apps.ps1 script will somehow disable a the xbox one controller adapter for windows. Not sure why, but I have tested it on 2 other systems with the same result.

Pre-script: Adapter works
Post Script: Adapter doesn't work.

Start Menu does not Open

I run all scripts from script folder and now my taskbar is broken. I can't open the start menu or taskbar icons like wifi, battery . How can i fix it?

Should Flash be removed?

Windows 10 comes with Adobe Flash Player built in. Given that Flash is a common source of privacy/security issues, should it be removed in the privacy fix script?

block-telemetry.ps1 hosts issue

If there is already an entry in the hosts file this script will append the first entry (currently "a-0001.a-msedge.net") to the end of the existing entry without a space, causing both entries to not work. There should be a <CR> to start a new line prior to inserting these entries into the hosts file. Here is an example of what happens:
10.10.1.10 existing.host.net0.0.0.0 a-0001.a-msedge.net

Thank you for the great collection of scripts - these have proven to be invaluable to us.

Remove Default Apps doesn't work for New Users...

Hi

I have been testing the anniversary update with these scripts. The problem I've found is that it doesn't not remove the apps for future users. I.e. New people who log in. Anyone know how that is done?

enable-god-mode.ps1 does not respect changed Desktop folder location

Background info: I've changed the Desktop folder location. (it's on my D drive)

Issue: The shortcut created by enable-god-modes.ps1 is still being put on the C: drive

Steps to reproduce

  • Change your Desktop folder location.:
    1. Right click C:\Users\Desktop
    1. Click Properties
    1. Click the "Location" tab
    1. Select a folder and apply
  • Run enable-god-mode.ps1

Unwanted scheduled tasks

I merged all the "disable scheduled tasks lines" from those three scripts and did some grouping to them.

I'm not sure if we should make one script to disable scheduled tasks or put them to already made scripts.

.NET (can these be disabled?)

schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64 Critical" /Disable
schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 64" /Disable
schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319 Critical" /Disable
schtasks /Change /TN "Microsoft\Windows\.NET Framework\.NET Framework NGEN v4.0.30319" /Disable

Telemetry related (office ones only if office is installed):

schtasks /Change /TN "Microsoft\Office\Office 15 Subscription Heartbeat" /Disable
schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Disable
schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable
schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /Disable
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable
schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /Disable
schtasks /Change /TN "Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser" /Disable

Error reporting:

schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable

Defender:

schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable

SmartScreen (data collection):

schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable

Maintenance (maybe should not be disabled):

schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Defrag\ScheduledDefrag" /Disable
schtasks /Change /TN "Microsoft\Windows\DiskCleanup\SilentCleanup" /Disable
schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable
schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable
schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /Disable
schtasks /Change /TN "Microsoft\Windows\TPM\Tpm-HASCertRetr" /Disable
schtasks /Change /TN "Microsoft\Windows\TPM\Tpm-Maintenance" /Disable
schtasks /Change /TN "Microsoft\Windows\Shell\IndexerAutomaticMaintenance" /Disable

Rest, mostly seems to be something network related:

schtasks /Change /TN "Microsoft\Windows\File Classification Infrastructure\Property Definition Sync" /Disable
schtasks /Change /TN "Microsoft\Windows\Maps\MapsUpdateTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Multimedia\SystemSoundsService" /Disable
schtasks /Change /TN "Microsoft\Windows\NetCfg\BindingWorkItemQueueHandler" /Disable
schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
schtasks /Change /TN "Microsoft\Windows\Offline Files\Background Synchronization" /Disable
schtasks /Change /TN "Microsoft\Windows\Offline Files\Logon Synchronization" /Disable
schtasks /Change /TN "Microsoft\Windows\Ras\MobilityManager" /Disable
schtasks /Change /TN "Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" /Disable
schtasks /Change /TN "Microsoft\Windows\RetailDemo\CleanupOfflineContent" /Disable
schtasks /Change /TN "Microsoft\Windows\SettingSync\BackgroundUploadTask" /Disable
schtasks /Change /TN "Microsoft\Windows\SettingSync\NetworkStateChangeTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /Disable
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /Disable
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Disable
schtasks /Change /TN "Microsoft\Windows\SpacePort\SpaceAgentTask" /Disable
schtasks /Change /TN "Microsoft\Windows\TextServicesFramework\MsCtfMonitor" /Disable
schtasks /Change /TN "Microsoft\Windows\User Profile Service\HiveUploadTask" /Disable
schtasks /Change /TN "Microsoft\Windows\WCM\WiFiTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange" /Disable
schtasks /Change /TN "Microsoft\Windows\Windows Media Sharing\UpdateLibrary" /Disable
schtasks /Change /TN "Microsoft\Windows\Wininet\CacheTask" /Disable
schtasks /Change /TN "Microsoft\Windows\Workplace Join\Automatic-Device-Join" /Disable

remove-default-apps.ps1 - is it possible to remove content delivery tiles?

I've found that Minecraft: Windows 10 Edition Beta, Adobe Photoshop Express, and Flipboard fall under some kind of content delivery system and can't be removed with script. This is what they look like when exported:

SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout2.2" DisplayName="Minecraft: Windows 10 Edition Beta" ...(clipped)

SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout1.2" DisplayName="Adobe Photoshop Express" ...(clipped)

SecondaryTile AppUserModelID="Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy!App" TileID="PreInstalled.DefaultStartLayout1.3" DisplayName="Flipboard" ... (clipped)

default-start-layout.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.