Debloat-Windows-10
                                
                                
                                
                                    Debloat-Windows-10 copied to clipboard
                            
                            
                            
                        Disable Windows Defender Issue
Similar problem like onedrive to remove windows defender. Errors occur even the second time. What can I do?
`Import-Module : The specified module 'C:\Users\Mali\Desktop\Win 10..\lib\force-mkdir.psm1' was not loaded because no valid module file was found in any module directory. At C:\Users\Mali\Desktop\Win 10\Disable Windows Defender.ps1:6 char:1
- Import-Module -DisableNameChecking $PSScriptRoot..\lib\force-mkdir.p ...
 - 
+ CategoryInfo : ResourceUnavailable: (C:\Users\Mali...orce-mkdir.psm1:String) [Import-Module], FileNot FoundException + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand 
Import-Module : The specified module 'C:\Users\Mali\Desktop\Win 10..\lib\take-own.psm1' was not loaded because no valid module file was found in any module directory. At C:\Users\Mali\Desktop\Win 10\Disable Windows Defender.ps1:7 char:1
- Import-Module -DisableNameChecking $PSScriptRoot..\lib\take-own.psm1
 - 
+ CategoryInfo : ResourceUnavailable: (C:\Users\Mali...b\take-own.psm1:String) [Import-Module], FileNot FoundException + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand 
Elevating priviledges for this process Elevate-Privileges : The term 'Elevate-Privileges' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Mali\Desktop\Win 10\Disable Windows Defender.ps1:10 char:14
- do {} until (Elevate-Privileges SeTakeOwnershipPrivilege)
 - 
~~~~~~~~~~~~~~~~~~- CategoryInfo : ObjectNotFound: (Elevate-Privileges:String) [], CommandNotFoundException
 - FullyQualifiedErrorId : CommandNotFoundException
 
 
Trying to disable scheduled task Windows Defender Cache Maintenance
TaskPath TaskName State
\Microsoft\Windows\Windows Defender\ Windows Defender Cache Mainten... Disabled Trying to disable scheduled task Windows Defender Cleanup \Microsoft\Windows\Windows Defender\ Windows Defender Cleanup Disabled Trying to disable scheduled task Windows Defender Scheduled Scan \Microsoft\Windows\Windows Defender\ Windows Defender Scheduled Scan Disabled Trying to disable scheduled task Windows Defender Verification \Microsoft\Windows\Windows Defender\ Windows Defender Verification Disabled Disabling Windows Defender via Group Policies force-mkdir : The term 'force-mkdir' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Mali\Desktop\Win 10\Disable Windows Defender.ps1:29 char:1
- force-mkdir "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows De ...
 - 
+ CategoryInfo : ObjectNotFound: (force-mkdir:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 
force-mkdir : The term 'force-mkdir' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Mali\Desktop\Win 10\Disable Windows Defender.ps1:32 char:1
- force-mkdir "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows De ...
 - 
+ CategoryInfo : ObjectNotFound: (force-mkdir:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 
sp : Cannot find path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender\Real-Time Protection' because it does not exist. At C:\Users\Mali\Desktop\Win 10\Disable Windows Defender.ps1:33 char:1
- sp "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows Defender\Re ...
 - 
+ CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE\...Time Protection:String) [Set-ItemProperty], ItemNotFo undException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand 
Disabling Windows Defender Services Takeown-Registry : The term 'Takeown-Registry' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Mali\Desktop\Win 10\Disable Windows Defender.ps1:36 char:1
- Takeown-Registry("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service ...
 - 
+ CategoryInfo : ObjectNotFound: (Takeown-Registry:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 
Removing Windows Defender context menu item Removing Windows Defender GUI / tray from autorun`
Do you have the creators update installed?
I use the windows 10 LTSB 2016. Haven't updated anything yet. Fresh install of LTSB 2016.
Just saw in your other post that you are using LTSB 2016. As the README says, only the Windows 10 Professional 64-Bit (English) version is supported.
Edit: clearly state which version of Windows is supported.
What can I do? LTSB is the best version and bloatware-free.
I noticed the recent trend in more and more people using LTSB for their regular OS. Note that Microsoft does not recommend this as LTSB is only targeted at special cases in an enterprice environment. Of course Microsoft could just say this because they want you to use the bloated OS with all their telemetry and advertising -- but I don't think this is really the case.
I recommend searching around what issues people have when using LTSB and whether it is really worth it -- whether the benefits overweigh the drawbacks.
Maybe I'll test the scripts on an LTSB install and look into emerging issues, but I cannot gurantee any of this.
Looking at the errors, have you downloaded the whole repository? Please double check if, for instance, the file force-mkdir.psm1 exists. The first error states that this module could not be loaded.
Of course I searched too much.
- It's highly recommended by everyone except Microsoft. Who cares about Microsoft. They just shove what they want down our throats.
 - And there are reviews everywhere that LTSB has amazing performance and even highly preferred for gaming.
 - And the windows edition comparison chart shows no difference in any features. It's just a version made for enterprise with extra enterprise features, so they didn't include bloatware or store. Nothing else. Even winaero suggests it.
 
https://forums.mydigitallife.net/threads/windows-10-enterprise-ltsb-n-pure-desktop-version-flexible-updates-no-modern-apps.63112/
I'm still using windows 7. I love it. It's the best OS. I'm testing windows 10 only because new processors don't support windows 7 and I have to buy a gaming laptop soon. I would never have installed windows 10 if not for LTSB version. There are ways to install windows 7 on newer processors but there will be graphical problems and incompatibilities. I searched a lot about it. Finally decided it's not worth it. There's no longer a choice. I pushed it as long as I could. Now I must upgrade. It was a miracle when I found LTSB. It still has settings related to cortana and stuff but that's the best we get. And it has onedrive. And I don't need windows defender. I want to remove this shit.
Oh thank you. I will try again.
The libs were a problem I think. It worked without errors now. But searching for "onedrive" in C drive, I found some results including the setup file. I had to take ownership and delete them manually. Can you add a way to remove the setup, manifests and other onedrive files?
I would use the Windows 10 China Government Edition instead! 🤣
The China Government Edition will use these manageability features to remove features that are not needed by Chinese government employees like OneDrive, to manage all telemetry and updates, and to enable the government to use its own encryption algorithms within its computer systems
https://blogs.windows.com/windowsexperience/2017/05/23/announcing-windows-10-china-government-edition-new-surface-pro/
@tumpio Thanks for letting me know about this. :D I checked but they removed onedrive and kept store, cortana...etc. LTSB has none.
I read that Win10 LTSB won't even support the next gen Intel Cannonlake CPU's.
LTSB will be updated again in 2019. So, it has to support new processors.
That's great. The processors come out in 2018.
Of course I searched too much.
* It's highly recommended by everyone except Microsoft. Who cares about Microsoft. They just shove what they want down our throats. * And there are reviews everywhere that LTSB has amazing performance and even highly preferred for gaming. * And the windows edition comparison chart shows no difference in any features. It's just a version made for enterprise with extra enterprise features, so they didn't include bloatware or store. Nothing else. Even winaero suggests it.https://forums.mydigitallife.net/threads/windows-10-enterprise-ltsb-n-pure-desktop-version-flexible-updates-no-modern-apps.63112/
I'm still using windows 7. I love it. It's the best OS. I'm testing windows 10 only because new processors don't support windows 7 and I have to buy a gaming laptop soon. I would never have installed windows 10 if not for LTSB version. There are ways to install windows 7 on newer processors but there will be graphical problems and incompatibilities. I searched a lot about it. Finally decided it's not worth it. There's no longer a choice. I pushed it as long as I could. Now I must upgrade. It was a miracle when I found LTSB. It still has settings related to cortana and stuff but that's the best we get. And it has onedrive. And I don't need windows defender. I want to remove this shit.
Oh thank you. I will try again.
Well, it's that time of the year again. Just installed Windows 10 LSTB (now called LTSC) 2019 on a VM and of course, the remove Windows Defender script doesn't remove Windows Defender. I'll have to find a way around in order to remove it and Cortana (also named """"Search""""" App).
I was going to open a new issue but the OP could edit first post in order to mention that this issue referes to Windows LTSB.
Windows is separating search from cortana. So, it will be removable from the next LTSC in 2022 or April 2018 Windows 10 Pro update.
I'm planning to test windows 7 on my laptop which officially doesn't support windows 7. But now there are easy ways to install it. Windows 10 is really not good. I'm not liking it.
@iriki I was unable to remove / disable Windows Defender via PowerShell in recent versions. The most reliable way I am using is to disable all Windows Defender related services and scheduled tasks from startup using Sysinternal's autoruns64.exe while booted into safe mode. This has to be reapplied after installing a major update.
ref #247