liu
7 天以前 2c9f82eb244960a6a24a8e0997c2a1ed000eaa4f
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
}