Skip to content

Commit d4ffe5b

Browse files
committed
Update
1 parent ed9d52b commit d4ffe5b

1 file changed

Lines changed: 61 additions & 61 deletions

File tree

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
## Windows Disk Health
2-
# Last update: 2025-11-25
3-
4-
5-
# Windows Partition
6-
7-
# Settings
8-
$Drive = "D"
9-
10-
11-
# Get the disk
12-
$Disk = Get-Partition -DriveLetter $Drive | Get-Disk
13-
14-
# SMART status (summary)
15-
Get-PhysicalDisk | Select-Object DeviceID, FriendlyName, HealthStatus, OperationalStatus
16-
17-
# SMART data
18-
Get-PhysicalDisk | Get-StorageReliabilityCounter | Select-Object DeviceId, Temperature, ReadErrorsTotal, WriteErrorsTotal, Wear
19-
20-
# Check specific disk
21-
$Disk | Get-StorageReliabilityCounter | Format-List
22-
23-
# Run disk check (CHKDSK) - Scan only (no fixes)
24-
Repair-Volume -DriveLetter $Drive -Scan
25-
26-
# Run disk check (CHKDSK) Scan and repair
27-
# Repair-Volume -DriveLetter $Drive -OfflineScanAndFix
28-
29-
# Check for bad sectors
30-
# chkdsk "$Drive`:" /r /f
31-
32-
33-
34-
# External Disk (VeraCrypt Volume)
35-
36-
# Settings (Get-Disk | Select Number, FriendlyName, Size)
37-
$DiskNumber = 1
38-
$DriveMounted = "A"
39-
40-
41-
# Unmounted VeraCrypt Drive
42-
43-
$Disk = Get-PhysicalDisk | Where-Object DeviceID -eq $DiskNumber
44-
$Disk | Select-Object FriendlyName, HealthStatus, OperationalStatus
45-
$Disk | Get-StorageReliabilityCounter | Format-List
46-
47-
48-
# Mounted VeraCrypt Drive
49-
50-
# Get the disk
51-
$Disk = Get-PhysicalDisk | Where-Object DeviceID -eq $DiskNumber
52-
53-
# Health status
54-
$Disk | Select-Object FriendlyName, HealthStatus, OperationalStatus
55-
56-
# SMART data
57-
$Disk | Get-StorageReliabilityCounter | Format-List
58-
59-
# Check the mounted volume
60-
chkdsk "$DriveMounted`:" /f /x
61-
1+
## Windows Disk Health
2+
# Last update: 2025-11-25
3+
4+
5+
# Windows Partition
6+
7+
# Settings
8+
$Drive = "D"
9+
10+
11+
# Get the disk
12+
$Disk = Get-Partition -DriveLetter $Drive | Get-Disk
13+
14+
# SMART status (summary)
15+
Get-PhysicalDisk | Select-Object DeviceID, FriendlyName, HealthStatus, OperationalStatus
16+
17+
# SMART data
18+
Get-PhysicalDisk | Get-StorageReliabilityCounter | Select-Object DeviceId, Temperature, ReadErrorsTotal, WriteErrorsTotal, Wear
19+
20+
# Check specific disk
21+
$Disk | Get-StorageReliabilityCounter | Format-List
22+
23+
# Run disk check (CHKDSK) - Scan only (no fixes)
24+
Repair-Volume -DriveLetter $Drive -Scan
25+
26+
# Run disk check (CHKDSK) Scan and repair
27+
# Repair-Volume -DriveLetter $Drive -OfflineScanAndFix
28+
29+
# Check for bad sectors
30+
# chkdsk "$Drive`:" /r /f
31+
32+
33+
34+
# External Disk (VeraCrypt Volume)
35+
36+
# Settings (Get-Disk | Select Number, FriendlyName, Size)
37+
$DiskNumber = 1
38+
$DriveMounted = "A"
39+
40+
41+
# Unmounted VeraCrypt Drive
42+
43+
$Disk = Get-PhysicalDisk | Where-Object DeviceID -eq $DiskNumber
44+
$Disk | Select-Object FriendlyName, HealthStatus, OperationalStatus
45+
$Disk | Get-StorageReliabilityCounter | Format-List
46+
47+
48+
# Mounted VeraCrypt Drive
49+
50+
# Get the disk
51+
$Disk = Get-PhysicalDisk | Where-Object DeviceID -eq $DiskNumber
52+
53+
# Health status
54+
$Disk | Select-Object FriendlyName, HealthStatus, OperationalStatus
55+
56+
# SMART data
57+
$Disk | Get-StorageReliabilityCounter | Format-List
58+
59+
# Check the mounted volume
60+
chkdsk "$DriveMounted`:" /f /x
61+

0 commit comments

Comments
 (0)