-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
79 lines (75 loc) · 6.34 KB
/
main.py
File metadata and controls
79 lines (75 loc) · 6.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import os as os
print('--------------------------')
print('- Windows 11 Tweaks V1.0 -')
print('--------------------------')
Menus = input('¿Habilitar los Menús Contextuales Clásicos? (Y/N): ')
if Menus == 'Y':
os.system('REG ADD "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -F')
Edge = input('¿Ajustes Personalizados de Microsoft Edge? (Y/N): ')
if Edge == 'Y':
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V AutofillAddressEnabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V AutofillCreditCardEnabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V BrowserAddProfileEnabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V BrowserSignin -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V EdgeCollectionsEnabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V EdgeShoppingAssistantEnabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V PasswordManagerEnabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V PaymentMethodQueryEnabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V ShowMicrosoftRewards -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Policies\Microsoft\Edge" -V VerticalTabsAllowed -T REG_DWORD -D 0 -F')
print('Desinstalando las Aplicaciones...')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.WindowsAlarms* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.XboxGamingOverlay* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.WindowsCamera* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.WindowsFeedbackHub* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.BingNews* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.Todo* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.People* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.BingWeather* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.WindowsSoundRecorder* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *MicrosoftTeams* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.ZuneMusic* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.WindowsMaps* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.MicrosoftSolitaireCollection* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.GetHelp* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.MicrosoftOfficeHub* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.ZuneVideo* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.Getstarted* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.YourPhone* | Remove-AppxPackage"')
os.system('PowerShell -Command "Get-AppxPackage *Microsoft.549981C3F5F10* | Remove-AppxPackage"')
print('Aplicaciones Desinstaladas')
print('Desinstalando OneDrive')
os.system('%WINDIR%\SysWOW64\OneDriveSetup.exe /Uninstall')
print('Eliminando la Carpeta de OneDrive')
os.system('RD /Q /S "%ONEDRIVE%"')
print('Eliminando la Carpeta de Juegos Guardados')
os.system('RD /Q /S "%USERPROFILE%\Saved Games"')
print('Desactivando la Suspensión del Sistema')
os.system('PowerCFG -Change STANDBY-TIMEOUT-AC 0')
print('Aplicando la Configuración del Registro')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -V TaskbarMn -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\SearchSettings" -V IsDeviceSearchHistoryEnabled -T REG_DWORD -D 0 -F')
os.system(r'REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement" -V ScoobeSystemSettingEnabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -V SubscribedContent-338389Enabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" -V DisableAutoplay -T REG_DWORD -D 1 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -V Start_TrackDocs -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" -V ShowFrequent -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -V SubscribedContent-338393Enabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -V SubscribedContent-353694Enabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -V SubscribedContent-353696Enabled -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\DWM" -V ColorPrevalence -T REG_DWORD -D 1 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -V VisualFXSetting -T REG_DWORD -D 3 -F')
os.system('REG ADD "HKCU\Control Panel\Desktop\WindowMetrics" -V MinAnimate -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\DWM" -V EnableAeroPeek -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Control Panel\Desktop" -V UserPreferencesMask -T REG_BINARY -D 9012078010000000 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -V TaskbarAnimations -T REG_DWORD -D 0 -F')
os.system('REG ADD "HKCU\Control Panel\Desktop" -V DragFullWindows -D 0 -F')
os.system('REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -V ListviewAlphaSelect -T REG_DWORD -D 0 -F')
os.system('REG DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount" /F')
print('Todos los Cambios Realizados')
Reiniciar = input('¿Reiniciar el Sistema al Salir? (Y/N): ')
if Reiniciar == 'Y':
os.system('Shutdown /R /T 5')
exit()
else:
exit()