<# .SYNOPSIS Déactivation du démarrage rapide .DESCRIPTION 0 pour désactiver 1 pour activer .PARAMETER .EXAMPLE .NOTES Auteurs : Aurélien Hamez - Service Exploitation - Secteur Roubaix-Tourcoing Région Hauts de France #> $PathKey = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System\" $Key = "HiberbootEnabled" $Value = Get-ItemProperty $PathKey -Name $Key -ErrorAction SilentlyContinue if ($Value){ $ValueKey = Get-ItemPropertyValue -Path $PathKey -Name $Key If ($ValueKey -ne 0) { Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name HiberbootEnabled -Type DWORD -Value 00000000 } } else{ New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name HiberbootEnabled -Type DWORD -Value 00000000 }