KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Windows/diagnostics/system/Bluetooth/RC_CheckBT.ps1
# Copyright © 2016, Microsoft Corporation. All rights reserved.
# :: ======================================================= ::
# This script is invoked from TS_Main.ps1
# If Bluetooth radio NOT found, then it rest of the scripts (like RC_BTRadioOff, RC_DriverProblem etc) will NOT be invoked.

#====================================================================================
# Initialize
#====================================================================================
Import-LocalizedData -BindingVariable Strings_RC_CheckBT -FileName CL_LocalizationData 
$radioNotDetected = $false

#====================================================================================
# Main
#====================================================================================
Write-DiagProgress -Activity $Strings_RC_CheckBT.ID_Check_Bluetooth

$findBluetooth=( Get-WmiObject -Class CIM_LogicalDevice | ? {($_.ClassGuid -eq '{e0cbf06c-cd8b-4647-bb8a-263b43f0f974}')})
$radioNotDetected = !$findBluetooth
Write-DiagTelemetry -Property "RadioAvailable" -Value (!$radioNotDetected)
Update-DiagRootCause -ID 'RC_CheckBT' -Detected $radioNotDetected

return $radioNotDetected

Anon7 - 2021