PowerShell Script ที่ถูก Run จะมี 2 ชนิดด้วยกัน คือ ซึ่งจะมีส่วนที่แตกต่างกันต่าง High Light สีแดง
powershell.exe -ExecutionPolicy Restricted -Command
$Res = 0
[UInt64]$MinDiskSpaceThreshold = 25 * 1024 * 1024 * 1024
try {
$SystemDrive = (Get-CimInstance Win32_OperatingSystem).SystemDrive
$SystemDriveLetter = $SystemDrive[0]
$SystemDriveSpace = (Get-Volume -DriveLetter $SystemDriveLetter).SizeRemaining
Write-Host 'Current system drive space:', $SystemDriveSpace.ToString('N0')
if ($SystemDriveSpace -lt $MinDiskSpaceThreshold) {
Write-Host 'System drive space is less than the threshold:', $MinDiskSpaceThreshold.ToString('N0'), 'Applying safeguard.'
$Res = 1
}
} catch {
# Do nothing
}
Write-Host 'Final result:', $Res
powershell.exe -ExecutionPolicy Restricted -Command
$Res = 0
[UInt64]$MinDiskSpaceThreshold = 20 * 1024 * 1024 * 1024
try {
$SystemDrive = (Get-CimInstance Win32_OperatingSystem).SystemDrive
$SystemDriveLetter = $SystemDrive[0]
$SystemDriveSpace = (Get-Volume -DriveLetter $SystemDriveLetter).SizeRemaining
Write-Host 'Current system drive space:', $SystemDriveSpace.ToString('N0')
if ($SystemDriveSpace -lt $MinDiskSpaceThreshold) {
Write-Host 'System drive space is less than the threshold:', $MinDiskSpaceThreshold.ToString('N0'), 'Block Upgrade.'
$Res = 1
}
} catch {
# Do nothing
}
Write-Host 'Final result:', $Res
และจากการตรวจสอบเพิ่มเติมพบว่าเป็น Script ที่มาจากทาง Microsoft เอง
File Path: C:\windows\system32\compattelrunner.exe
ซึ่ง Process นี้เป็นของตัว Microsoft Windows Program ซึ่งเป็น Program เพื่อเก็บข้อมูล Telemetry ระบบและส่งให้ Microsoft ทำการปรับปรุง User Experience และ Error
คำตอบจากทาง Microsoft: What is CompatTelRunner.exe on Win10 64-bit and why does it jam up my PC for ten minutes on startup?
สามารถทำการ Whitelist ได้ตาม Guide นี้ได้เลยครับ
ข้อคิดเห็น
0 ข้อคิดเห็น
โปรด ลงชื่อเข้าใช้ เพื่อแสดงข้อคิดเห็น