tuqin
9 天以前 ce96310177bdd6d24ac90bd6f92d8def30b680af
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
}