User Tools

Site Tools


script:powershell:os:command

This is an old revision of the document!


OS: Commandes utiles

Windows 10

Récupérer le Release ID

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
$ReleaseId
Résultat :

Récupérer les informations de version sans passer par du WMI

# 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 :

script/powershell/os/command.1597093676.txt.gz · Last modified: 2020/08/10 23:07 by 127.0.0.1