|
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64 User : ServerPC ( 0) PHP Version : 8.2.12 Disable Function : NONE Directory : C:/Windows/diagnostics/system/WindowsMediaPlayerPlayDVD/ |
Upload File : |
# Copyright � 2008, Microsoft Corporation. All rights reserved.
#TS_WindowsMediaPlayer
Import-LocalizedData -BindingVariable localizationString -FileName CL_LocalizationData
$IsWMPInstalled = .\TS_IsWMPUnavailable.ps1
if ($IsWMPInstalled -eq $False)
{
return $False
}
$WMplayer = Get-Process -name wmplayer
if ($WMplayer -ne $Null)
{
$CloseWMP = Get-DiagInput -id "IT_WMPRuning"
}
#
#detecting dvd device and dvd decoders
#
Write-DiagProgress -activity $localizationString.Troubleshoot_DetectDVDDevice
[HashTable]$DVDDevices = .\TS_DVDDevice.ps1
if ($DVDDevices.Count -le 0)
{
Update-DiagRootCause -id RC_MissingDVDDevice -Detected $true
}
else
{
Update-DiagRootCause -id RC_MissingDVDDevice -Detected $false
}
[string]$MultiDeviceID = ""
[string]$DeviceID = ""
foreach($DeviceID in $DVDDevices.Keys)
{
$DeviceErrorCode = $DVDDevices.Item($DeviceID)
if($DeviceErrorCode -ne 0)
{
$MultiDeviceID += $DeviceID
$MultiDeviceID += "#"
}
}
if([String]::IsNullOrEmpty($MultiDeviceID) -ne $True)
{
$MultiDeviceID = $MultiDeviceID.Replace("&", "&")
Update-DiagRootCause -id RC_ProblematicDVDDevice -iid $DeviceID -Detected $true -p @{"DEVICEID" = $MultiDeviceID}
}
else
{
Update-DiagRootCause -id RC_ProblematicDVDDevice -iid $DeviceID -Detected $False -p @{"DEVICEID" = $MultiDeviceID}
}
Write-DiagProgress -activity $localizationString.Troubleshoot_DetectDVDvideoDecoder
$IsDvdVideoDecoderProblem = .\TS_DVDVideoDecoder.ps1
Write-DiagProgress -activity $localizationString.Troubleshoot_DetectDVDAudioDecoder
$IsDvdAudioDecoderProblem = .\TS_DVDAudioDecoder.ps1
if (($IsDvdVideoDecoderProblem -eq $False) -or ($IsDvdAudioDecoderProblem -eq $False))
{
Update-DiagRootCause RC_MissingDVDDecoder -Detected $true
}
else
{
Update-DiagRootCause RC_MissingDVDDecoder -Detected $false
}