gaoluyang
2026-11-02 c81753a00a5d777ebf3e073dfdc1507ca899b5d3
1
2
3
4
5
$osInfo = Get-WmiObject -Class Win32_OperatingSystem
# check if running on Windows Server
if ($osInfo.ProductType -eq 3) {
  Install-WindowsFeature Server-Media-Foundation
}