User Tools

Site Tools


script:powershell:os:command

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script:powershell:os:command [2020/08/10 23:07]
127.0.0.1 external edit
script:powershell:os:command [2021/07/05 11:04] (current)
admin
Line 21: Line 21:
 {{:​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 ====
 +<sxh powershell>​
 +& C:​\Windows\System32\control.exe /name Microsoft.WindowsUpdate
 +</​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>​
script/powershell/os/command.1597093676.txt.gz · Last modified: 2020/08/10 23:07 by 127.0.0.1