⚡ PowerShell 5.1+

Disable Fast Startup

Disables Fast Startup, useful when dual-booting or troubleshooting shutdowns (requires admin). Requires an elevated (Administrator) prompt.

By WindowsScripting.com · 770 B
Set-DisableFastStartup.ps1
<#
.SYNOPSIS
    Disable Fast Startup.

.DESCRIPTION
    Disables Fast Startup, useful when dual-booting or troubleshooting shutdowns (requires admin). Requires an elevated (Administrator) prompt.

    Sets HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power \ HiberbootEnabled to 0.

.EXAMPLE
    .\Set-DisableFastStartup.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'HiberbootEnabled' -Value 0 -PropertyType DWord -Force | Out-Null

Write-Host "Disable Fast Startup applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green