This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
script:powershell:os:command [2021/07/05 10:12] admin |
script:powershell:os:command [2021/07/05 11:04] (current) admin |
||
---|---|---|---|
Line 20: | Line 20: | ||
Résultat :\\ | Résultat :\\ | ||
{{:script:powershell:os:2020-01-13_11_53_17-windows_powershell_ise.png|}} | {{:script:powershell:os:2020-01-13_11_53_17-windows_powershell_ise.png|}} | ||
+ | |||
+ | ==== Convertir une build en Nom ==== | ||
+ | <sxh powershell> | ||
+ | [string]$Version = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId | ||
+ | |||
+ | |||
+ | $Edition = switch ((Get-CimInstance -ClassName Win32_OperatingSystem).BuildNumber) | ||
+ | { | ||
+ | 10240 { '1507' } | ||
+ | 10586 { '1511' } | ||
+ | 14393 { '1607' } | ||
+ | 15063 { '1703' } | ||
+ | 16299 { '1709' } | ||
+ | 17134 { '1803' } | ||
+ | 17763 { '1809' } | ||
+ | 18362 { '1903' } | ||
+ | 18363 { '1909' } | ||
+ | 19041 { '2004' } | ||
+ | 19042 { '20H2' } | ||
+ | 19043 { '21H1' } | ||
+ | 21390 { '21H2' } | ||
+ | default { 'Unknown' } | ||
+ | } | ||
+ | |||
+ | $Edition | ||
+ | </sxh> | ||
+ | |||
==== Ouvrir l'un des menus parametres de Windows 10 ==== | ==== Ouvrir l'un des menus parametres de Windows 10 ==== | ||
Line 26: | Line 53: | ||
</sxh> | </sxh> | ||
- | + | ==== Récupérer les MUI installés ==== | |
+ | <sxh powershell> | ||
+ | $Wmi_OS = Get-CimInstance -ClassName "Win32_OperatingSystem" -Namespace "root\CIMV2" | ||
+ | $GetMUILanguages = $Wmi_OS.MUILanguages | ||
+ | </sxh> |