tuqin
8 天以前 531b50cab6e42e6146a419bc71c5b494fff774b2
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
}