function Get-W10-Info
{
$path = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
Get-ItemProperty -Path $path -Name CurrentBuild, UBR, ReleaseID, CompositionEditionID | Select-Object -Property CurrentBuild, UBR, ReleaseID, CompositionEditionID
}
Voici un exemple d’infos :
CurrentBuild UBR ReleaseId CompositionEditionID
———— — ——— ——————–
15063 1088 1703 Professional