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 :

Ouvrir l'un des menus parametres de Windows 10

& C:\Windows\System32\control.exe /name Microsoft.WindowsUpdate

script/powershell/os/command.1625472731.txt.gz · Last modified: 2021/07/05 10:12 by admin