Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
Windows
/
diagnostics
/
system
/
Device
/
View File Name :
TS_NotWorkingProperly.ps1
# Copyright © 2017, Microsoft Corporation. All rights reserved. # :: ======================================================= :: <# DESCRIPTION: RC_NotWorkProperly checks whether device working properly or not ARGUMENTS: $DeviceID : String containing device pnp id RETURNS: Bool value True if device not working properly else False #> PARAM($DeviceID) #================================================================================== # Loading Utilities #================================================================================ . .\DB_DeviceErrorLibrary.ps1 . .\CL_Utility.ps1 #================================================================================ # Initialize #================================================================================== Import-LocalizedData -BindingVariable localizationString -FileName CL_LocalizationData $RootCauseAdded = $false Write-DiagProgress -activity $localizationString.Troubleshoot_HardwareDevices try { $ProblemDevice = Get-WmiObject -Class Win32_PnPEntity | Where-Object -FilterScript {$_.DeviceID -eq $DeviceID} if(($ProblemDevice -ne $Null) -and ($ProblemDevice.ConfigManagerErrorCode -ne $Null)) { [string]$DeviceName = $ProblemDevice.Name [string]$ErrorCode = $ProblemDevice.ConfigManagerErrorCode if ([String]::IsNullOrEmpty($DeviceName)) { $DeviceName = $localizationString.UnknownDevice } $DeviceDetails = Get-WmiObject -Class Win32_PnPSignedDriver | Where-Object -FilterScript {$_.DeviceID -eq $DeviceID} [string]$DriverInfName = $DeviceDetails.InfName [string]$DriverDate = $DeviceDetails.DriverDate [string]$DriverVersion = $DeviceDetails.DriverVersion if([String]::IsNullOrEmpty($DriverInfName)) { $DriverInfName = $localizationString.UnknownDevice } if([String]::IsNullOrEmpty($DriverDate)) { $DriverDate = $localizationString.UnknownDevice } if([String]::IsNullOrEmpty($DriverVersion)) { $DriverVersion = $localizationString.UnknownDevice } [string]$DeviceIDInstance = $DeviceID + "/" + $DriverInfName + "/" + $DriverVersion + "/" + $DriverDate if($HashDeviceErrors.Contains($ErrorCode) -eq $True) { $RootCauseAdded = $True } } Update-DiagRootCause -id RC_NotWorkingProperly -iid $DeviceIDInstance -Detected $RootCauseAdded -p @{'DeviceName'= $DeviceName; 'DeviceID'= $DeviceID; 'ErrorCode'= $ErrorCode} if($RootCauseAdded) { Write-DiagTelemetry -Property "RC_NotWorkProperly" -Value $ErrorCode $ProblemDevice | Select-Object -Property @{Name=$localizationString.DeviceName; Expression={$_.Name}}, @{Name=$localizationString.PnPDeviceID; Expression={$_.PNPDeviceID}}, @{Name=$localizationString.ConfigManagerErrorCode; Expression={$_.ConfigManagerErrorCode}} | ConvertTo-XML | Update-DiagReport -ID DeviceNotWorkingProperly -Name $localizationString.Report_Name_ProblemDevice -Verbosity Informational -rid RC_NotWorkingProperly -riid $DeviceIDInstance } } Catch [System.Exception] { Write-ExceptionTelemetry "RC_NotWorkProperly" $ErrorCode $_ $errorMsg = $_.Exception.Message $errorMsg | ConvertTo-Xml | Update-DiagReport -Id "RC_NotWorkProperly" -Name "RC_NotWorkProperly" -Verbosity Debug } return $RootCauseAdded