Ajout dela structure MDT dans Infra-LAB

This commit is contained in:
2026-05-24 16:21:20 +02:00
parent fed8d42171
commit 049b03b4d4
522 changed files with 105109 additions and 0 deletions
@@ -0,0 +1,36 @@
<#
.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
}