diff --git a/Assets/Menus/DefaultSettings b/Assets/Menus/DefaultSettings index db8c54d..337fefb 100644 --- a/Assets/Menus/DefaultSettings +++ b/Assets/Menus/DefaultSettings @@ -8,6 +8,7 @@ Win11Debloat will make the following changes: - Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper) - Disable tips, tricks, suggestions and ads in start, settings, notifications and more. - Disable Microsoft Copilot. (Windows 11 build 22621+) +- Disable Fast Start-up to ensure a full shutdown. - Show file extensions for known file types. - Disable the widget service & hide the icon from the taskbar. - Hide the Chat (meet now) icon from the taskbar. diff --git a/Get.ps1 b/Get.ps1 index 06b8c9a..444c732 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -15,6 +15,7 @@ param ( [switch]$ForceRemoveEdge, [switch]$DisableDVR, [switch]$DisableTelemetry, + [switch]$DisableFastStartup, [switch]$DisableBingSearches, [switch]$DisableBing, [switch]$DisableDesktopSpotlight, [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, diff --git a/README.md b/README.md index 49fcb1d..6069184 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ The script also includes many features that system administrators will enjoy. Su - Disable Xbox game/screen recording, this also stops gaming overlay popups. - Turn off Enhance Pointer Precision, also known as mouse acceleration. +- Disable Fast Start-up to ensure a full shutdown. - Disable the Sticky Keys keyboard shortcut. (W11 only) - Option to apply changes to a different user, instead of the currently logged in user. - Sysprep mode to apply changes to the Windows Default user profile. Afterwards, all new users will have the changes automatically applied to them. @@ -77,6 +78,7 @@ The script allows you to select exactly what changes you want to make, but it al - Disable tips, tricks, suggestions and ads in start, settings, notifications, File Explorer, and on the lockscreen. - Disable & remove Bing web search & Cortana from Windows search. - Disable Microsoft Copilot. (W11 only) + - Disable Fast Start-up to ensure a full shutdown. - Show file extensions for known file types. - Hide the 3D objects folder under 'This pc' from File Explorer. (W10 only) - Disable the widget service & hide the icon from the taskbar. @@ -305,6 +307,7 @@ The quick and advanced usage methods support switch parameters. A table of all t | -Sysprep | Run the script in Sysprep mode. All changes will be applied to the Windows default user profile and will only affect new user accounts. | | -User `` | Run the script for the specified user, instead of the currently logged in user. This user must have logged on atleast once, and cannot be logged in at the time the script is run. | | -RunDefaults | Run the script with the default settings. | +| -DisableFastStartup | Disables Fast Start-up to ensure a full shutdown. | | -RunSavedSettings | Run the script with the saved custom settings from last time. These settings are saved to and read from the `SavedSettings` file in the root folder of the script. | | -RemoveApps | Remove the default selection of bloatware apps. | | -RemoveAppsCustom | Remove all apps specified in the 'CustomAppsList' file. IMPORTANT: You can generate your custom list by running the script with the `-RunAppsListGenerator` parameter. No apps will be removed if this file does not exist. | diff --git a/Regfiles/Disable_Fast_Startup.reg b/Regfiles/Disable_Fast_Startup.reg new file mode 100644 index 0000000..1a7849f --- /dev/null +++ b/Regfiles/Disable_Fast_Startup.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power] +"HiberbootEnabled"=dword:00000000 diff --git a/Regfiles/Sysprep/Disable_Fast_Startup.reg b/Regfiles/Sysprep/Disable_Fast_Startup.reg new file mode 100644 index 0000000..1a7849f --- /dev/null +++ b/Regfiles/Sysprep/Disable_Fast_Startup.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power] +"HiberbootEnabled"=dword:00000000 diff --git a/Regfiles/Undo/Enable_Fast_Startup.reg b/Regfiles/Undo/Enable_Fast_Startup.reg new file mode 100644 index 0000000..e5fb4d6 --- /dev/null +++ b/Regfiles/Undo/Enable_Fast_Startup.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power] +"HiberbootEnabled"=dword:00000001 diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 954e8b3..5b1b47a 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -17,6 +17,7 @@ param ( [switch]$ForceRemoveEdge, [switch]$DisableDVR, [switch]$DisableTelemetry, + [switch]$DisableFastStartup, [switch]$DisableBingSearches, [switch]$DisableBing, [switch]$DisableDesktopSpotlight, [switch]$DisableLockscrTips, [switch]$DisableLockscreenTips, @@ -852,6 +853,12 @@ function DisplayCustomModeOptions { } } + Write-Output "" + + if ($( Read-Host -Prompt "Disable Fast Start-up? (y/n)" ) -eq 'y') { + AddParameter 'DisableFastStartup' 'Disable Fast Start-up' + } + # Only show option for disabling context menu items for Windows 10 users or if the user opted to restore the Windows 10 context menu if ((get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'") -or $global:Params.ContainsKey('RevertContextMenu')){ Write-Output "" @@ -1267,7 +1274,7 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS Read-Host | Out-Null } - $DefaultParameterNames = 'RemoveApps','DisableTelemetry','DisableBing','DisableLockscreenTips','DisableSuggestions','ShowKnownFileExt','DisableWidgets','HideChat','DisableCopilot' + $DefaultParameterNames = 'RemoveApps','DisableTelemetry','DisableBing','DisableLockscreenTips','DisableSuggestions','ShowKnownFileExt','DisableWidgets','HideChat','DisableCopilot','DisableFastStartup' PrintHeader 'Default Mode' @@ -1473,6 +1480,10 @@ else { RegImport "> Disabling the Sticky Keys keyboard shortcut..." "Disable_Sticky_Keys_Shortcut.reg" continue } + 'DisableFastStartup' { + RegImport "> Disabling Fast Start-up..." "Disable_Fast_Startup.reg" + continue + } 'ClearStart' { Write-Output "> Removing all pinned apps from the start menu for user $(GetUserName)..." ReplaceStartMenu