Hello,
here are some registry keys attached:
Registry keys included:
- disable AD Customization
- disable Cloud
- disable Data Collector
- disable Drive Encryption
- disable Windows Error Reporting
- disable Messenger
- disable OneDrive
- disable Store
- disable Windows Search
- disable Windows Update Shares
Python code (the package filters so they only apply to Windows 10):
def install():
# if you want to modify the keys depending on environment (win32/win64... params..)
global uninstallkey
global uninstallstring
print('Installing chal-config-pc')
import wmi
c = wmi.WMI()
for os in c.Win32_OperatingSystem():
name_os=os.Caption
print "SE="+name_os[:20]
if name_os[:20]=='Microsoft Windows 10':
print('-------------------------------')
print('CONFIGURATIONS FOR WINDOWS 10')
print('-------------------------------')
print('Applying registry key windows-10_desactiver_ad-cust.reg')
run(r'regedit.exe /s windows-10_desactiver_ad-cust.reg')
print('Applying registry key windows-10_desactiver_cloud.reg')
run(r'regedit.exe /s windows-10_desactiver_cloud.reg')
print('Applying registry key registry key windows-10_desactiver_data-collect.reg')
run(r'regedit.exe /s windows-10_desactiver_data-collect.reg')
print('Applying the registry key windows-10_desactiver_encrypt-drives.reg')
run(r'regedit.exe /s windows-10_desactiver_encrypt-drives.reg')
print('Applying the registry key windows-10_desactivate_error-reports.reg')
run(r'regedit.exe /s windows-10_desactiver_error-reportst.reg')
print('Applying registry key windows-10_desactiver_messenger.reg')
run(r'regedit.exe /s windows-10_desactiver_messenger.reg')
print('Applying registry key windows-10_desactiver_onedrive.reg')
run(r'regedit.exe /s windows-10_desactiver_onedrive.reg')
print('Applying the registry key windows-10_desactiver_store.reg')
run(r'regedit.exe /s windows-10_desactiver_store.reg')
print('Applying the registry key windows-10_desactiver_windows-search.reg')
run(r'regedit.exe /s windows-10_desactiver_windows-search.reg')
print('Applying registry key windows-10_desactiver_winupdate-share.reg')
run(r'regedit.exe /s windows-10_desactiver_winupdate-share.reg')
Windows 10: Disabling features
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
- Challans Town Hall
- Messages: 15
- Registered: July 7, 2014 - 3:52 PM
- Attachments
-
- cle_registre_win10.zip
- Registry keys to disable certain Windows 10 features
- (4 KB) Downloaded 427 times
Unfortunately, this isn't enough for OneDrive. You also need to create a script like this:
@echo off
REM Removing Microsoft Onedrive
REM If OneDriveSetup.exe does not exist, go to :sight
If not exist %SystemRoot%\SysWOW64\OneDriveSetup.exe goto :eof
REM So let's uninstall %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
%SystemRoot%\Windows\SysWOW64\regedit.exe /s \\Corellia\lup\remove_onedrive_icon.reg
:sight
:eof
Good morning,
For my part, I use these scripts: https://github.com/W4RH4WK/Debloat-Windows-10 for apps and OneDrive.
I have not yet tested integrating them into a wapt package because you have to run the "Set-ExecutionPolicy Unrestricted" command in an administrator PowerShell window to allow them to execute it.
I'll try to watch it this weekend.
EDIT
I'm here but I'm having trouble finding the script's address:
EDIT 2
I've reworked the code. All that's left is to test it, but I lack testing equipment at the site I'm at today...
For my part, I use these scripts: https://github.com/W4RH4WK/Debloat-Windows-10 for apps and OneDrive.
I have not yet tested integrating them into a wapt package because you have to run the "Set-ExecutionPolicy Unrestricted" command in an administrator PowerShell window to allow them to execute it.
I'll try to watch it this weekend.
EDIT
I'm here but I'm having trouble finding the script's address:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
import subprocess
uninstallkey = []
def install():
print('installing Debloat Windows 10')
subprocess.call(["C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe",
"-ExecutionPolicy",
"Unrestricted",
"Debloat-Windows-10-master\scripts\remove-default-apps.ps1"])
subprocess.call(["C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe",
"-ExecutionPolicy",
"Unrestricted",
"\Debloat-Windows-10-master\scripts\remove-onedrive.ps1"])
I've reworked the code. All that's left is to test it, but I lack testing equipment at the site I'm at today...
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
import subprocess, os
dir_path = os.path.dirname(os.path.realpath(__file__))
uninstallkey = []
def install():
print('installing Debloat Windows 10')
subprocess.call(["powershell.exe","-ExecutionPolicy","Unrestricted",dir_path + "\\Debloat-Windows-10-master\\scripts\\remove-default-apps.ps1"])
subprocess.call(["powershell.exe","-ExecutionPolicy","Unrestricted",dir_path + "\\Debloat-Windows-10-master\\scripts\\remove-onedrive.ps1"])Here is the WAPT package.
Test it before deployment!

Test it before deployment!
- Attachments
-
- tis-DebloatWindows10_0.0.0-0_all.wapt.7z
- (5.25 KB) Downloaded 447 times

