; version date: August 22, 2016
; Tested on Windows 10 1511 (November Update), Windows 10 1607 (Anniversary Update)
; Tested on Windows 10 Home, Windows 10 Pro
; Tested on Windows 10 x64, Windows 10 x32
; Prompt to 'Run as Admin', i.e. show UAC dialog
If Not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
; Allow registry commands in a 32-bit script to access redirected keys in the 64-bit registry view and vice versa.
; Thanks to qwerty12 (see [URL unfurl="true"]https://autohotkey.com/boards/viewtopic.php?f=5&t=21292&p=102632#p102632)[/URL]
SetRegView 64
; *********************************
; Section 1 - System
; *********************************
; Section 1a - Display
; This is a placeholder
; Section 1b - Notifications & actions
; Select which icons appear on the taskbar
; This is a placeholder for Network, Volume, Windows Explorer, Microsoft OneDrive, etc.
; Always show all icons in the Notification Area - Turn ON
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer, EnableAutoTray, 0
; Turn system icons on or off
; This is a placeholder for Clock, Volume, Network, Power, Input indicator, Location and Action Center
; Notifications - Show me tips about Windows - Turn OFF
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager, SoftLandingEnabled, 0
; Section 1c - Apps & features
; Disable built-in apps
; Use a hash mark (#) to comment out lines within the following PowerShell code block
psScript =
(
# Remove 3D Builder:
Get-AppxPackage *3dbuilder* | Remove-AppxPackage
# Remove Alarms and Clock:
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
# Remove Calculator:
Get-AppxPackage *windowscalculator* | Remove-AppxPackage
# Remove Calendar and Mail:
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
# Remove Camera:
Get-AppxPackage *windowscamera* | Remove-AppxPackage
# Remove Food and Drink:
Get-AppxPackage *BingFoodAndDrink* | Remove-AppxPackage
# Remove Get Office:
Get-AppxPackage *officehub* | Remove-AppxPackage
# Remove Get Skype:
Get-AppxPackage *skypeapp* | Remove-AppxPackage
# Remove Get Started:
Get-AppxPackage *getstarted* | Remove-AppxPackage
# Remove Groove Music:
Get-AppxPackage *zunemusic* | Remove-AppxPackage
# Remove Health And Fitness:
Get-AppxPackage *binghealthandfitness* | Remove-AppxPackage
# Remove Maps:
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
# Remove Microsoft Solitaire Collection:
Get-AppxPackage *solitairecollection* | Remove-AppxPackage
# Remove Microsoft Sway:
Get-AppxPackage *office.sway* | Remove-AppxPackage
# Remove Minecraft:
Get-AppxPackage *minecraftuwp* | Remove-AppxPackage
# Remove Money:
Get-AppxPackage *bingfinance* | Remove-AppxPackage
# Remove Movies & TV:
Get-AppxPackage *music.preview* | Remove-AppxPackage
# Remove Music Preview:
Get-AppxPackage *zunevideo* | Remove-AppxPackage
# Remove News:
Get-AppxPackage *bingnews* | Remove-AppxPackage
# Remove OneNote:
Get-AppxPackage *onenote* | Remove-AppxPackage
# Remove People:
Get-AppxPackage *people* | Remove-AppxPackage
# Remove Phone Companion:
Get-AppxPackage *windowsphone* | Remove-AppxPackage
# Remove Photos:
Get-AppxPackage *photos* | Remove-AppxPackage
# Remove Store:
# Included for completeness... but can cause problems if removed, hence why it's commented out
# Get-AppxPackage *windowsstore* | Remove-AppxPackage
# Remove Sports:
Get-AppxPackage *bingsports* | Remove-AppxPackage
# Remove Travel:
Get-AppxPackage *bingtravel* | Remove-AppxPackage
# Remove Voice Recorder:
Get-AppxPackage *soundrecorder* | Remove-AppxPackage
# Remove Weather:
Get-AppxPackage *bingweather* | Remove-AppxPackage
# Remove Xbox:
# If un-installed, you may as well delete the 3 Xbox services
Get-AppxPackage *xboxapp* | Remove-AppxPackage
# ********** Non-Microsoft apps *****************
# Remove Candy Crush Soda Saga:
Get-AppxPackage *candycrushsodasaga* | Remove-AppxPackage
# Remove Candy Crush Soda:
Get-AppxPackage *candycrushsoda* | Remove-AppxPackage
# Remove DuoLingo:
Get-AppxPackage *Duolingo-LearnLanguagesforFree* | Remove-AppxPackage
# Remove Flipboard:
Get-AppxPackage *flipboard* | Remove-AppxPackage
# Remove ClearChannelRadioDigital.iHeartRadio:
Get-AppxPackage *iHeartRadio* | Remove-AppxPackage
# Remove Shazam:
Get-AppxPackage *shazamentertainmentltd* | Remove-AppxPackage
# Remove Twitter:
Get-AppxPackage *twitter* | Remove-AppxPackage
)
; Use this call if you don't want to see PowerShell output
;RunWait PowerShell.exe -Command &{%psScript%} ,, hide
; Test mode - Use this call if you want to see PowerShell output
RunWait powershell.exe -NoExit -Command &{%psScript%}
; Disable OneDrive integration
; Thanks to Shawn Brink ([URL unfurl="true"]http://www.tenforums.com/tutorials/16278-onedrive-integration-enable-disable-windows-10-a.html)[/URL]
; NOTE: Cannot re-enable unless you sign in to OneDrive (so I don't use this method)
; RegWrite, REG_DWORD, HKLM\SOFTWARE\Policies\Microsoft\Windows\OneDrive, DisableFileSyncNGSC, 1
; Remove OneDrive from File Explorer and stop it running from startup (alternative method)
If (A_Is64bitOS)
{
; OS_is := "64-bit"
RegWrite, REG_DWORD, HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}, System.IsPinnedToNameSpaceTree, 0
RegWrite, REG_DWORD, HKCR\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}, System.IsPinnedToNameSpaceTree, 0
RegDelete, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, OneDrive
}
Else
{
; OS_is := "32-bit"
RegWrite, REG_DWORD, HKCR\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}, System.IsPinnedToNameSpaceTree, 0
RegDelete, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run, OneDrive
}
; Clean up OneDrive logs
; Delete the contents of C:\Users\<username>\AppData\Local\Microsoft\OneDrive\logs\Personal
; Section 1d - Multi-tasking
; This is a placeholder
; Section 1e - Tablet mode
; This is a placeholder
; Section 1f - Battery saver
; This is a placeholder
; Section 1g - Power & sleep
; This is a placeholder
; Section 1h - Storage
; This is a placeholder
; Section 1i - Offline maps
; This is a placeholder
; Section 1j - Default apps
; This is a placeholder
; Section 1l - About
; No configurable settings
; *********************************
; Section 2 - Devices
; *********************************
; Section 2a - Printers & scanners
; Let Windows manage my default printer (1=Turn OFF / 0=Turn ON)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows, LegacyDefaultPrinterMode, 1
; Section 2b - Connected devices
; Section 2c - Bluetooth
; This is a placeholder
; Section 2d - Mouse & touchpad
; This is a placeholder
; Section 2e - Typing
; This is a placeholder
; Section 2f - Autoplay
; This is a placeholder
; Section 2g - USB
; This is a placeholder
; *********************************
; Section 3 - Network & Internet
; *********************************
; Section 3a - WiFi
; This is a placeholder
; Section 3b - Flight mode
; This is a placeholder
; Section 3c - Data usage
; This is a placeholder
; Section 3d - VPN
; This is a placeholder
; Section 3e - Dial-up
; This is a placeholder
; Section 3f - Ethernet
; This is a placeholder
; Section 3g - Proxy
; This is a placeholder
; *********************************
; Section 4 - Personalisation
; *********************************
; Section 4a - Background
; This is a placeholder
; Section 4b - Colours
; This is a placeholder
; Section 4c - Lock screen
; Stop adverts on the Lock screen
; See [URL unfurl="true"]http://www.howtogeek.com/243263/how-to-disable-ads-on-your-windows-10-lock-screen/[/URL]
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager, RotatingLockScreenEnabled, 0
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager, RotatingLockScreenOverlayEnabled, 0
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative, LockImageFlags, 0
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative, CreativeId,
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative, PortraitAssetPath,
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative, LandscapeAssetPath,
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative, PlacementId,
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative, ImpressionToken,
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative, HotspotImageFolderPath,
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lock Screen\Creative, CreativeJson,
; Section 4d - Themes
; This is a placeholder
; Section 4e - Start
; Occasionally show suggestions in Start - Turn OFF
; (See [URL unfurl="true"]http://www.winhelponline.com/blog/how-to-disable-start-menu-ads-or-suggestions-in-windows-10/)[/URL]
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager, SystemPaneSuggestionsEnabled, 0
; Section 4f = Other 'look and feel' settings
; Live Tiles
; Disable Live Tile Push Notifications (0=Turn ON / 1=Turn OFF)
; [URL unfurl="true"]http://winaero.com/blog/disable-live-tiles-all-at-once-in-windows-10-start-menu/[/URL]
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications, NoTileApplicationNotification, 1
; Clear Live Tile Notifications
; [URL unfurl="true"]http://winaero.com/blog/how-to-clear-live-tile-notifications-during-log-on-in-windows-10/[/URL]
RegWrite, REG_DWORD, HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer, ClearTilesOnExit, 1
RegWrite, REG_DWORD, HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer, ClearTilesOnExit, 1
; File Explorer - Change folder and search options
; Always show menus (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, AlwaysShowMenus, 1
; Show hidden files, folders and drives (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, Hidden, 1
; Hide empty drives (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, HideDrivesWithNoMedia, 0
; Hide extensions for known file types (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, HideFileExt, 0
; Restore previous folder windows at log on (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, PersistBrowsers, 1
; Show encrypted or compressed NTFS files in colour (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, ShowEncryptCompressedColor, 1
; Display the full path in the title bar (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState, FullPath, 1
RegWrite, REG_BINARY, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState, Settings, 0c0002000b01000060000000
; Disable notifications in File Explorer (1=Turn ON / 0=Turn OFF)
; Thanks to How-To Geek ([URL unfurl="true"]http://www.howtogeek.com/267369/how-to-disable-notifications-in-windows-file-explorer/)[/URL]
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, ShowSyncProviderNotifications, 0
; Open File Explorer to This PC or Quick access (1=This PC / 2=Quick access)
; Thanks to Shawn Brink (see [URL unfurl="true"]http://www.tenforums.com/tutorials/3734-file-explorer-open-pc-quick-access.html)[/URL]
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced, LaunchTo, 1
; Adjust for 'Best Performance'
; Thanks to arcticir (see [URL unfurl="true"]https://autohotkey.com/boards/viewtopic.php?f=6&t=20522&p=100808#p100808)[/URL]
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects, VisualFXSetting, 2
; Taskbar
; Taskbar (0=Always show all icons and notifications on the taskbar / 1=Hide Inactive Icons)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer, EnableAutoTray, 0
; Cortana - Taskbar search (0=Hide Taskbar search / 1=Show search icon / 2=Show search box)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search, SearchboxTaskbarMode, 1
; Cortana (Build 1511) - Disable Cortana but keep search (0=Disable / 1=Enable)
RegWrite, REG_DWORD, HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search, AllowCortana, 0
; Cortana (Build 1607) - Disable Cortana but keep search (0=Disable / 1=Enable)
RegWrite, REG_DWORD, HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search, AllowCortana, 0
; Cortana (Build 1607) - Search online and include web results (0=Turn OFF / 1=Turn ON)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search, BingSearchEnabled, 0
; Cortana (Build 1607) - Lock screen - Use Cortana even when my device is locked (0=Turn OFF / 1=Turn ON)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Speech_OneCore\Preferences, VoiceActivationEnableAboveLockscreen, 0
; Windows Defender notification icon - stop running from startup
RegDelete, HKLM\Software\Microsoft\Windows\CurrentVersion\Run, WindowsDefender
; Show drive letters before drive label. This setting works for all users. PC has to be rebooted for it to take effect
; Thanks to qwerty12 (see [URL unfurl="true"]https://autohotkey.com/boards/viewtopic.php?f=5&t=21292&p=102632#p102632)[/URL]
RegWrite, REG_DWORD, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer, ShowDriveLettersFirst, 4
; Create a GodMode folder on Current User's desktop
FileCreateDir, %A_Desktop%\GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
; OR
; Create a GodMode folder on All Users' desktop
;FileCreateDir, %A_DesktopCommon%\GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
; *********************************
; Section 5 - Accounts
; *********************************
; No configurable settings ('cos I don't use a Microsoft account)
; *********************************
; Section 6 - Time & language
; *********************************
; This is a placeholder
; *********************************
; Section 7 - Ease of access
; *********************************
; This is a placeholder
; *********************************
; Section 8 - Privacy (inc. telemetry)
; *********************************
; Section 8a - General
; Let apps use my advertising ID for experiences across apps (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo, Enabled, 0
; Turn on SmartScreen Filter to check web content (URLs) that Windows Store apps use (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost, EnableWebContentEvaluation, 0
; Send Microsoft info about how I write to help us improve typing and writing in the future (1=Turn ON / 0=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Input\TIPC, Enabled, 0
; Let websites provide locally relevant content by accessing my language list (1=Turn OFF / 0=Turn ON)
RegWrite, REG_DWORD, HKCU\Control Panel\International\User Profile, HttpAcceptLanguageOptOut, 1
; Section 8b - Location
; Location services for this account - Turn OFF
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}, Value, Deny ; (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Permissions\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}, SensorPermissionState, 0 ; (1=Turn ON / 0=Turn OFF)
; Section 8c - Camera
; Let apps use my camera (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E5323777-F976-4f5b-9B55-B94699C46E44}, Value, Deny
; Alternatively, disable apps individually...
; App connector (Allow=Turn ON / Deny=Turn OFF)
;RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-3232211935-909325347-210818523-1333736584-3758124246-283266685-1557978965\{E5323777-F976-4f5b-9B55-B94699C46E44}, Value, Deny
; Maps (Allow=Turn ON / Deny=Turn OFF)
;RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-1239072475-3687740317-1842961305-3395936705-4023953123-1525404051-2779347315\{E5323777-F976-4f5b-9B55-B94699C46E44}, Value, Deny
; Messaging + Skype (Allow=Turn ON / Deny=Turn OFF)
;RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-421345033-1710570203-969709436-2809900243-2023987463-1056701467-1672618525\{E5323777-F976-4f5b-9B55-B94699C46E44}, Value, Deny
; Microsoft Edge (Allow=Turn ON / Deny=Turn OFF)
;RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-3624051433-2125758914-1423191267-1740899205-1073925389-3782572162-737981194\{E5323777-F976-4f5b-9B55-B94699C46E44}, Value, Deny
; OneNote (Allow=Turn ON / Deny=Turn OFF)
;RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-3445883232-1224167743-206467785-1580939083-2750001491-3097792036-3019341970\{E5323777-F976-4f5b-9B55-B94699C46E44}, Value, Deny
; Sway (Allow=Turn ON / Deny=Turn OFF)
;RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-584073948-3292409011-2882754242-2237763630-1999038865-1049037702-4080706152\{E5323777-F976-4f5b-9B55-B94699C46E44}, Value, Deny
; Twitter (Allow=Turn ON / Deny=Turn OFF)
;RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-1063257880-1914585122-1954150059-946145533-116938067-416079064-1690466945\{E5323777-F976-4f5b-9B55-B94699C46E44}, Value, Deny
; Section 8d - Microphone
; Let apps use my microphone (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2EEF81BE-33FA-4800-9670-1CD474972C3F}, Value, Deny
; Section 8e - Speech, inking & typing
; Getting to know you - Turn OFF (i.e. turn off dictation and Cortana)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\InputPersonalization, RestrictImplicitInkCollection, 1
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\InputPersonalization, RestrictImplicitTextCollection, 1
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore, HarvestContacts, 0
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Personalization\Settings, AcceptedPrivacyPolicy, 0
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search, CortanaMUID, MUID=f535481b5ce7446bb42d74220b682de1
; Section 8f - Account info
; Let apps access my name, picture and other account info (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{C1D23ACC-752B-43E5-8448-8D0E519CD6D6}, Value, Deny
; Section 8g - Contacts
; Choose apps that can access contacts (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-1063257880-1914585122-1954150059-946145533-116938067-416079064-1690466945\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}, Value, Deny
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-2551677095-2355568638-4209445997-2436930744-3692183382-387691378-1866284433\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}, Value, Deny
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-3232211935-909325347-210818523-1333736584-3758124246-283266685-1557978965\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}, Value, Deny
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-4153522205-3718366397-1353898457-1332184198-1210887116-3116787857-2103916698\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}, Value, Deny
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\S-1-15-2-421345033-1710570203-969709436-2809900243-2023987463-1056701467-1672618525\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}, Value, Deny
; Section 8h - Calendar
; Let apps access my calendar (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{D89823BA-7180-4B81-B50C-7E471E6121A3}, Value, Deny
; Section 8i - Call history
; Let apps access my call history (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{8BC668CF-7728-45BD-93F8-CF2B3B41D7AB}, Value, Deny
; Section 8j - Email
; Let apps access and send email (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{9231CB4C-BF57-4AF3-8C55-FDA7BFCC04C5}, Value, Deny
; Section 8k - Messaging
; Let apps read or send messages (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{21157C1F-2651-4CC1-90CA-1F28B02263F6}, Value, Deny
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{992AFA70-6F47-4148-B3E9-3003349C1548}, Value, Deny
; Section 8l - Radios
; Let apps control radios (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{A8804298-2D5F-42E3-9531-9C8C39EB29CE}, Value, Deny
; Section 8m - Other devices
; Sync with devices (Allow=Turn ON / Deny=Turn OFF)
RegWrite, REG_SZ, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\LooselyCoupled, Value, Deny
; Section 8n - Feedback & diagnostics (aka telemetry)
; Feedback frequency - Windows should ask for my feedback - NEVER (SIUF = System Initiated User Feedback)
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Siuf\Rules, NumberOfSIUFInPeriod, 0
; Diagnostic and usage data - Send your device data to Microsoft - BASIC
RegWrite, REG_DWORD, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection, AllowTelemetry, 1
RegWrite, REG_DWORD, HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection, AllowTelemetry, 0
; Section 8o - Background apps
; Alarms & clocks - Turn OFF
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsAlarms_10.1603.12020.0_x86__8wekyb3d8bbwe, Disabled, 1
; Skype video - Turn OFF
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Messaging_2.15.20002.0_x86__8wekyb3d8bbwe, Disabled, 1
; Store - Turn OFF
RegWrite, REG_DWORD, HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.WindowsStore_11602.1.26.0_x64__8wekyb3d8bbwe, Disabled, 1
; *********************************
; Section 9 - Update & security
; *********************************
; Section 9a - Windows Update
; Uploading of Windows Updates (both LAN and Internet) using built-in P2P service - Turn OFF
RegWrite, REG_DWORD, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config, DODownloadMode, 0
; Include driver updates in Windows Update - Turn OFF
; See [URL unfurl="true"]http://www.tenforums.com/tutorials/48277-driver-updates-windows-update-enable-disable-windows-10-a.html[/URL]
RegWrite, REG_DWORD, HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate, ExcludeWUDriversInQualityUpdate, 1
; Section 9b - Windows Defender
; See [URL unfurl="true"]http://www.askvg.com/windows-10-tip-disable-data-collection-and-telemetry-in-windows-defender/[/URL]
; Note: The following 2 entries will trigger a Windows 10 bug that shows "Some settings are managed by your organisation." on the Settings > Windows Defender dialog
; Windows Defender - Cloud-based Protection (Send Microsoft info about potential security problems) - Turn OFF
RegWrite, REG_DWORD, HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet, SpyNetReporting, 0
; Windows Defender - Automatic sample submission - Turn OFF
RegWrite, REG_DWORD, HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet, SubmitSamplesConsent, 2
; Section 9c - Backup
; This is a placeholder
; Section 9d - Recovery
; This is a placeholder
; Section 9e - Activation
; This is a placeholder as there are no configurable settings to date
; Section 9f - Find my device
; No configurable settings ('cos I don't use a Microsoft account)
; Section 9g - For developers
; This is a placeholder
; *********************************
; Section 10 - Configure Services
; *********************************
; Stop and disable AllJoynRouter
; Stop and disable DiagTrack
; This used to appear in Services as 'Diagnostics Tracking Service' but MS sneakily renamed it to 'Connected User Experiences and Telemetry'
RunWait,sc stop "DiagTrack",,hide
RunWait,sc config "DiagTrack" start= disabled,,hide
;RunWait,sc delete "DiagTrack",,hide
; Stop and delete Retail Demo
RunWait,sc stop "RetailDemo",,hide
RunWait,sc config "RetailDemo" start= disabled,,hide
RunWait,sc delete "RetailDemo",,hide
; Stop and disable WAP Push Message Routing Service
RunWait,sc stop "dmwappushservice",,hide
RunWait,sc config "dmwappushservice" start= disabled,,hide
;RunWait,sc delete "dmwappushservice",,hide
; Stop and disable Windows Wallet
RunWait,sc stop "WalletService",,hide
RunWait,sc config "WalletService" start= disabled,,hide
;RunWait,sc delete "WalletService",,hide
; Stop and disable Windows Connect Now - Config Registrar
RunWait,sc stop "wcncsvc",,hide
RunWait,sc config "wcncsvc" start= disabled,,hide
;RunWait,sc delete "wcncsvc",,hide
; Stop and disable Windows Media Player Network Sharing
RunWait,sc stop "WMPNetworkSvc",,hide
RunWait,sc config "WMPNetworkSvc" start= disabled,,hide
;RunWait,sc delete "WMPNetworkSvc",,hide
; Stop and disable 3 Xbox services
RunWait,sc stop "XblAuthManager",,hide
RunWait,sc config "XblAuthManager" start= disabled,,hide
;RunWait,sc delete "XblAuthManager",,hide
RunWait,sc stop "XblGameSave",,hide
RunWait,sc config "XblGameSave" start= disabled,,hide
;RunWait,sc delete "XblGameSave",,hide
RunWait,sc stop "XboxNetApiSvc",,hide
RunWait,sc config "XboxNetApiSvc" start= disabled,,hide
;RunWait,sc delete "XboxNetApiSvc",,hide
; *********************************
; Section 11 - Configure Scheduled Tasks
; *********************************
RunWait,schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable,,hide
RunWait,schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable,,hide
RunWait,schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable,,hide
RunWait,schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /Disable,,hide
RunWait,schtasks /Change /TN "Microsoft\Windows\RetailDemo\CleanupOfflineContent" /Disable,,hide
; *********************************
; Configure other hardware settings
; Automatically download manufacturers' apps and custom icons - Turn OFF
RegWrite, REG_DWORD, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata, PreventDeviceMetadataFromNetwork, 1
; Restrict Wi-Fi Sense
; See [URL unfurl="true"]http://www.thewindowsclub.com/disable-wi-fi-sense-windows-10-enterprise[/URL]
;RegWrite, REG_DWORD, HKLM\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config, AutoConnectAllowedOEM, 0
; Restore normal behaviour for 'Reg' commands
; Thanks to qwerty12 (see [URL unfurl="true"]https://autohotkey.com/boards/viewtopic.php?f=5&t=21292&p=102632#p102632)[/URL]
SetRegView default