Windows 11 dotfiles
Running setup_dotfiles.bat will:
- Request Administrator privileges through UAC (and relaunch itself as admin when needed).
- Ensure the user SSH folder exists at
%USERPROFILE%\.ssh. - Backup any existing SSH config to a randomized backup file.
- Copy
dotfiles/win11/ssh/configto%USERPROFILE%\.ssh\config. - Execute
global_configs.ps1to apply Windows user and system preferences.
global_configs.ps1 applies a full baseline that includes:
- Configure TIPC by setting
HKCU\SOFTWARE\Microsoft\Input\TIPC\Enabledto0. - Configure language privacy by setting
HKCU\Control Panel\International\User Profile\HttpAcceptLanguageOptOutto1. - Configure Settings ad suppression by setting
SubscribedContent-338393Enabledto0. - Configure Settings tip suppression by setting
SubscribedContent-338394Enabledto0. - Configure Settings promotional banner suppression by setting
SubscribedContent-338396Enabledto0. - Configure text personalization restriction by setting
RestrictImplicitTextCollectionto1. - Configure ink personalization restriction by setting
RestrictImplicitInkCollectionto1. - Configure contact harvesting restriction by setting
HarvestContactsto0. - Configure personalization policy reset by setting
AcceptedPrivacyPolicyto0. - Configure feedback prompt suppression by setting
HKCU\SOFTWARE\Microsoft\Siuf\Rules\NumberOfSIUFInPeriodto0. - Configure Start menu suggestion suppression by setting
SubscribedContent-338388Enabledto0. - Configure diagnostic telemetry minimum level by setting
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection\AllowTelemetryto1when running as Administrator. - Configure Explorer to show file extensions by setting
HideFileExtto0. - Configure Explorer network thumbnail policy by setting
DisableThumbnailsOnNetworkFoldersto1. - Configure Start search to disable Bing web results by setting
BingSearchEnabledto0. - Configure app removal by uninstalling
Microsoft.BingFinancefor users and provisioned images. - Configure app removal by uninstalling
Microsoft.BingNewsfor users and provisioned images. - Configure app removal by uninstalling
Microsoft.BingSportsfor users and provisioned images. - Configure app removal by uninstalling
Microsoft.BingWeatherfor users and provisioned images. - Configure app removal by uninstalling
Microsoft.MicrosoftOfficeHubfor users and provisioned images. - Configure app removal by uninstalling
Microsoft.GetStartedfor users and provisioned images. - Configure consumer feature blocking by setting
HKLM\Software\Policies\Microsoft\Windows\CloudContent\DisableWindowsConsumerFeaturesto1when running as Administrator. - Configure Defender cloud protection by setting
MAPSReportingto0. - Configure Defender sample upload policy by setting
SubmitSamplesConsentto2. - Configure Explorer to show hidden files by setting
Hiddento1. - Configure Explorer title behavior by setting
CabinetState\FullPathto1. - Configure Narrator shortcut behavior by setting
WinEnterLaunchEnabledto0. - Configure extra CloudContent hardening by setting
DisableCloudOptimizedContentto1when running as Administrator. - Configure extra CloudContent hardening by setting
DisableConsumerAccountStateContentto1when running as Administrator. - Configure AC sleep timeout to never by running
powercfg /change standby-timeout-ac 0when running as Administrator. - Configure battery sleep timeout to never by running
powercfg /change standby-timeout-dc 0when running as Administrator. - Configure AC monitor timeout to never by running
powercfg /change monitor-timeout-ac 0when running as Administrator. - Configure battery monitor timeout to never by running
powercfg /change monitor-timeout-dc 0when running as Administrator. - Configure hibernation to disabled by running
powercfg /hibernate offwhen running as Administrator. - Configure screensaver state by setting
ScreenSaveActiveto0. - Configure screensaver unlock behavior by setting
ScreenSaverIsSecureto0. - Configure desktop wallpaper source by generating and assigning a
black.bmpfile in%APPDATA%\Microsoft\Windows\Themes. - Configure desktop solid background color by setting
HKCU\Control Panel\Colors\Backgroundto0 0 0. - Configure wallpaper mode by setting
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\BackgroundTypeto1. - Configure immediate wallpaper application by calling
SystemParametersInfowithSPI_SETDESKWALLPAPER.