This is an old revision of the document!
Récupérer l'information ReleaseID via une intérogration dans la base de registre de Windows 10, merci à David pour cette trouvaille
$ReleaseId = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').ReleaseId $ReleaseIdRésultat :
# Version Intégrale ([System.Environment]::OSVersion.Version).ToString() # Build uniquement ([System.Environment]::OSVersion.Version.Build).ToString() # Information Major ([System.Environment]::OSVersion.Version.Major).ToString()Résultat :
& C:\Windows\System32\control.exe /name Microsoft.WindowsUpdate