mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Added Disable Fast Start-up Option (#212)
Co-authored-by: Jeffrey <9938813+Raphire@users.noreply.github.com>
This commit is contained in:
@@ -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 on the lockscreen. (This may change your lockscreen wallpaper)
|
||||||
- Disable tips, tricks, suggestions and ads in start, settings, notifications and more.
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications and more.
|
||||||
- Disable Microsoft Copilot. (Windows 11 build 22621+)
|
- Disable Microsoft Copilot. (Windows 11 build 22621+)
|
||||||
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Disable the widget service & hide the icon from the taskbar.
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
|
|||||||
1
Get.ps1
1
Get.ps1
@@ -15,6 +15,7 @@ param (
|
|||||||
[switch]$ForceRemoveEdge,
|
[switch]$ForceRemoveEdge,
|
||||||
[switch]$DisableDVR,
|
[switch]$DisableDVR,
|
||||||
[switch]$DisableTelemetry,
|
[switch]$DisableTelemetry,
|
||||||
|
[switch]$DisableFastStartup,
|
||||||
[switch]$DisableBingSearches, [switch]$DisableBing,
|
[switch]$DisableBingSearches, [switch]$DisableBing,
|
||||||
[switch]$DisableDesktopSpotlight,
|
[switch]$DisableDesktopSpotlight,
|
||||||
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
|
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
|
||||||
|
|||||||
@@ -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.
|
- Disable Xbox game/screen recording, this also stops gaming overlay popups.
|
||||||
- Turn off Enhance Pointer Precision, also known as mouse acceleration.
|
- 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)
|
- Disable the Sticky Keys keyboard shortcut. (W11 only)
|
||||||
- Option to apply changes to a different user, instead of the currently logged in user.
|
- 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.
|
- 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 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 & remove Bing web search & Cortana from Windows search.
|
||||||
- Disable Microsoft Copilot. (W11 only)
|
- Disable Microsoft Copilot. (W11 only)
|
||||||
|
- Disable Fast Start-up to ensure a full shutdown.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Hide the 3D objects folder under 'This pc' from File Explorer. (W10 only)
|
- Hide the 3D objects folder under 'This pc' from File Explorer. (W10 only)
|
||||||
- Disable the widget service & hide the icon from the taskbar.
|
- 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. |
|
| -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 `<USERNAME>` | 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. |
|
| -User `<USERNAME>` | 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. |
|
| -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. |
|
| -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. |
|
| -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. |
|
| -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. |
|
||||||
|
|||||||
4
Regfiles/Disable_Fast_Startup.reg
Normal file
4
Regfiles/Disable_Fast_Startup.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
|
||||||
|
"HiberbootEnabled"=dword:00000000
|
||||||
4
Regfiles/Sysprep/Disable_Fast_Startup.reg
Normal file
4
Regfiles/Sysprep/Disable_Fast_Startup.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
|
||||||
|
"HiberbootEnabled"=dword:00000000
|
||||||
4
Regfiles/Undo/Enable_Fast_Startup.reg
Normal file
4
Regfiles/Undo/Enable_Fast_Startup.reg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Windows Registry Editor Version 5.00
|
||||||
|
|
||||||
|
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
|
||||||
|
"HiberbootEnabled"=dword:00000001
|
||||||
@@ -17,6 +17,7 @@ param (
|
|||||||
[switch]$ForceRemoveEdge,
|
[switch]$ForceRemoveEdge,
|
||||||
[switch]$DisableDVR,
|
[switch]$DisableDVR,
|
||||||
[switch]$DisableTelemetry,
|
[switch]$DisableTelemetry,
|
||||||
|
[switch]$DisableFastStartup,
|
||||||
[switch]$DisableBingSearches, [switch]$DisableBing,
|
[switch]$DisableBingSearches, [switch]$DisableBing,
|
||||||
[switch]$DisableDesktopSpotlight,
|
[switch]$DisableDesktopSpotlight,
|
||||||
[switch]$DisableLockscrTips, [switch]$DisableLockscreenTips,
|
[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
|
# 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')){
|
if ((get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'") -or $global:Params.ContainsKey('RevertContextMenu')){
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
@@ -1267,7 +1274,7 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS
|
|||||||
Read-Host | Out-Null
|
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'
|
PrintHeader 'Default Mode'
|
||||||
|
|
||||||
@@ -1473,6 +1480,10 @@ else {
|
|||||||
RegImport "> Disabling the Sticky Keys keyboard shortcut..." "Disable_Sticky_Keys_Shortcut.reg"
|
RegImport "> Disabling the Sticky Keys keyboard shortcut..." "Disable_Sticky_Keys_Shortcut.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
'DisableFastStartup' {
|
||||||
|
RegImport "> Disabling Fast Start-up..." "Disable_Fast_Startup.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
'ClearStart' {
|
'ClearStart' {
|
||||||
Write-Output "> Removing all pinned apps from the start menu for user $(GetUserName)..."
|
Write-Output "> Removing all pinned apps from the start menu for user $(GetUserName)..."
|
||||||
ReplaceStartMenu
|
ReplaceStartMenu
|
||||||
|
|||||||
Reference in New Issue
Block a user