%~d0
CD %~dp0
REM **********************Start of Modify Default User Hive ******************
REM **Load Default User Hive**
mapdu.exe
:: Time zone
tzutil /s "Pacific Standard Time"
:: Personalisation settings
:: Personalize your speech, typing, and inking input by sending contacts and calendar details, along with other associated input data to Microsoft
Reg Add "HKCU\SOFTWARE\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /t REG_DWORD /d 0 /f
Reg Add "HKCU\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" /v HarvestContacts /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" /v HarvestContacts /t REG_DWORD /d 0 /f
:: Send typing and inking data to Microsoft to improve the recognition and suggestion platform
Reg Add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f
:: Let apps use your advertising ID for experience across apps
Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /t REG_DWORD /d 0 /f
:: Smart Screen filter: Turn off
:: Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f
::Reg Add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
Reg Add "HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter" /v EnabledV9 /t REG_DWORD /d 0 /f
Reg Add "HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\FlipAhead" /v FPEnabled /t REG_DWORD /d 0 /f
::Reg Add "HKU\Defaultuser\Software\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\FlipAhead" /v FPEnabled /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter" /v EnabledV9 /t REG_DWORD /d 0 /f
:: TURNOFF NOTIFICATION ON LOCK SCREEN
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK /t REG_DWORD /d 0 /f
:: HIDE ONE DRIVE
Reg Add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6" /v System.IsPinnedToNameSpaceTree /t REG_DWORD /d 0 /f
Reg Add "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /v System.IsPinnedToNameSpaceTree /t REG_DWORD /d 0 /f
:: DISABLE ONE DRIVE
Reg Add "HKLM\Software\Policies\Microsoft\Windows\OneDrive" /v DisableFileSyncNGSC /t REG_DWORD /d 1
:: TURN ON TABLETMODE
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell" /v TabletMode /t REG_DWORD /d 1
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell" /v TabletMode /t REG_DWORD /d 1
:: Disable wifi sense (NEED TO BE TESTED ON A MACHINE WITH WIFI)
Reg Add "HKLM\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config" /v AutoConnectAllowedOEM /t REG_DWORD /d 0 /f
:: Show colour on Start, taskbar and action centre AND Automatically pick a color from my background.
Reg Add "HKCU\Control Panel\Desktop" /v AutoColorization /t REG_DWORD /d 1 /f
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v ColorPrevalence /t REG_DWORD /d 1 /f
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\DWM" /v ColorPrevalence /t REG_DWORD /d 1 /f
Reg Add "HKU\Defaultuser\Control Panel\Desktop" /v AutoColorization /t REG_DWORD /d 1 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v ColorPrevalence /t REG_DWORD /d 1 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\DWM" /v ColorPrevalence /t REG_DWORD /d 1 /f
:: Make Start, taskbar and action centre transparent
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v EnableTransparency /t REG_DWORD /d 1 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v EnableTransparency /t REG_DWORD /d 1 /f
:: Show app notifications - Turn Off
Reg Add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /t REG_DWORD /d 0 /f
:: Hide notifications while presenting
Reg Add "HKCU\SOFTWARE\Microsoft\MobilePC\AdaptableSettings" /v SkipBatteryCheck /t REG_DWORD /d 1 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\MobilePC\AdaptableSettings" /v SkipBatteryCheck /t REG_DWORD /d 1 /f
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v NOC_GLOBAL_SETTING_SUPRESS_TOASTS_WHILE_DUPLICATING /t REG_DWORD /d 1 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v NOC_GLOBAL_SETTING_SUPRESS_TOASTS_WHILE_DUPLICATING /t REG_DWORD /d 1 /f
::To also be able to run the Windows Mobility Center on your Desktop computer, you need to add the following value as well
Reg Add "HKCU\SOFTWARE\Microsoft\MobilePC\MobilityCenter" /v RunOnDesktop /t REG_DWORD /d 1 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\MobilePC\MobilityCenter" /v RunOnDesktop /t REG_DWORD /d 1 /f
::To Turn Off Offline Maps
Reg add "HKLM\SYSTEM\Maps" /v AutoUpdateEnabled /t REG_DWORD /d 0 /f
:: Disable RDP
Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f
Net Stop UmRDPService
Net Stop TermService
:: Disable remote assistance
Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Remote Assistance" /v fAllowToGetHelp /t REG_DWORD /d 0 /f
:: Disable System Restore
Reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v DisableSR /t REG_DWORD /d 1 /f
:: sc config srservice start= disabled
:: net stop srservice
::feedback and diagnostic disable
Reg Add "HKCU\Software\Microsoft\Siuf\Rules" /v PeriodInNanoSeconds /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\Software\Microsoft\Siuf\Rules" /v PeriodInNanoSeconds /t REG_DWORD /d 0 /f
Reg Add "HKCU\Software\Microsoft\Siuf\Rules" /v NumberOfSIUFInPeriod /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\Software\Microsoft\Siuf\Rules" /v NumberOfSIUFInPeriod /t REG_DWORD /d 0 /f
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v Value /t REG_SZ /d Deny /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v Value /t REG_SZ /d Deny /f
::Disable Error Reporting
Reg Add "HKLM\SOFTWARE\Microsoft\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f
::Always_install_best_driver_software_from_Windows_Update
Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v SearchOrderConfig /t REG_DWORD /d 1 /f
::Never_Notify_or_Check_for_Updates
Reg Add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f
::Turn_Off_alarms_reminders_VoIP-calls_on_Lock_Screen
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK /t REG_DWORD /d 0 /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" /v NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK /t REG_DWORD /d 0 /f
::Turn_Off_Location_for_this_Device
Reg Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v Value /t REG_SZ /d Deny /f
Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v Value /t REG_SZ /d Deny /f
::Reg Add "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Permissions\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v SensorPermissionState /t REG_DWORD /d 0 /f
::Reg Add "HKU\Defaultuser\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Permissions\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" /v SensorPermissionState /t REG_DWORD /d 0 /f
::Disable Check for solutions to problem reports
Reg Add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f
::Enable_Automatic_Maintenance
Reg Add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\Maintenance" /v MaintenanceDisabled /t REG_DWORD /d - /f
::Turn Off File History
Reg Add "HKLM\SOFTWARE\Policies\Microsoft\Windows\FileHistory" /v Disabled /t REG_DWORD /d 1 /f
::Turn Off Windows defender Settings
Reg Add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f
Reg Add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 2 /f
Reg Add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SpynetReporting /t REG_DWORD /d 0 /f
Reg Add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
::Turn_Off_Clear_Tile_Notifications_during_log_on
Reg Add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v ClearTilesOnExit /t REG_SZ /d /f
Reg Add "HKU\Defaultuser\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v ClearTilesOnExit /t REG_SZ /d /f
Reg Add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v ClearTilesOnExit /t REG_SZ /d /f
REGPOL.EXE HKCU "Software\Policies\Microsoft\Windows\Control Panel\Desktop" "ScreenSaveActive" REG_SZ "1"
REGPOL.EXE HKCU "Software\Policies\Microsoft\Windows\Control Panel\Desktop" "ScreenSaverIsSecure" REG_SZ "1"
REGPOL.EXE HKCU "Software\Policies\Microsoft\Windows\Control Panel\Desktop" "ScreenSaveTimeOut" REG_SZ "1200"
ping 127.0.0.1 -n 20 > NUL
REM **Unload Default User Hive**
mapdu.exe /U
ping 127.0.0.1 -n 20 > NUL
No comments:
Post a Comment