|
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/Bluetooth/ |
Upload File : |
# Copyright © 2016, Microsoft Corporation. All rights reserved.
# :: ======================================================= ::
# This script is invoked from TS_Main.ps1
# TS_Main.ps1 passes only $problemDeviceID parameter
# This script is to detect error codes NOT defined in CL_Utility.ps1 and !errorCode22
Param($problemDeviceID)
#====================================================================================
# Initialize
#====================================================================================
Import-LocalizedData -BindingVariable Strings_RC_OtherIssue -FileName CL_LocalizationData
[bool]$detected = $false
#====================================================================================
# Load Utilities
#====================================================================================
. ./CL_Utility.ps1
#====================================================================================
# Main
#====================================================================================
if(![string]::IsNullOrWhiteSpace($problemDeviceID))
{
$problemDevice = (Get-WmiObject -Class CIM_LogicalDevice | ? {($_.DeviceID -eq $problemDeviceID)})
$problemDeviceName = $problemDevice.Name
$errorCode = $problemDevice.ConfigManagerErrorCode
if(($knownErrorCodes.Keys -notcontains $errorCode) -and ($errorCode -ne 22))
{
$detected = $true
GetDeviceInfoAndWriteTrace $problemDeviceID "DetectedDeviceOtherError"
}
}
Update-DiagRootCause -ID 'RC_OtherIssue' -IID $problemDeviceID -Detected $detected -Parameter @{'ProblemDeviceID'= $problemDeviceID;'ProblemDeviceName'=$problemDeviceName;'ErrorCode'=$errorCode}
return $detected