Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell
Installing PowerShell - PowerShell | Microsoft Docs
PS C:\WINDOWS\system32> sfc /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
PS C:\WINDOWS\system32> dism /online /cleanup-image /scanhealth
Deployment Image Servicing and Management tool
Version: 10.0.19041.329
Image Version: 10.0.19041.329
[==========================100.0%==========================] No component store corruption detected.
The operation completed successfully.
PS C:\WINDOWS\system32> dism /online /cleanup-image /restorehealth
Deployment Image Servicing and Management tool
Version: 10.0.19041.329
Image Version: 10.0.19041.329
[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.
PS C:\WINDOWS\system32> sfc /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
PS C:\WINDOWS\system32> chkdsk /scan
The type of the file system is NTFS.
Volume label is Windows.
Stage 1: Examining basic file system structure ...
473088 file records processed.
File verification completed.
Phase duration (File record verification): 2.06 seconds.
4561 large file records processed.
Phase duration (Orphan file record recovery): 0.00 milliseconds.
0 bad file records processed.
Phase duration (Bad file record checking): 0.21 milliseconds.
Stage 2: Examining file name linkage ...
1797 reparse records processed.
558314 index entries processed.
Index verification completed.
Phase duration (Index verification): 3.07 seconds.
0 unindexed files scanned.
Phase duration (Orphan reconnection): 196.14 milliseconds.
0 unindexed files recovered to lost and found.
Phase duration (Orphan recovery to lost and found): 0.96 milliseconds.
1797 reparse records processed.
Phase duration (Reparse point and Object ID verification): 7.10 milliseconds.
Stage 3: Examining security descriptors ...
Security descriptor verification completed.
Phase duration (Security descriptor verification): 45.54 milliseconds.
42614 data files processed.
Phase duration (Data attribute verification): 0.77 milliseconds.
CHKDSK is verifying Usn Journal...
41546792 USN bytes processed.
Usn Journal verification completed.
Phase duration (USN journal verification): 84.73 milliseconds.
Windows has scanned the file system and found no problems.
No further action is required.
499136926 KB total disk space.
84289212 KB in 159218 files.
117288 KB in 42615 indexes.
0 KB in bad sectors.
602194 KB in use by the system.
65536 KB occupied by the log file.
414128232 KB available on disk.
4096 bytes in each allocation unit.
124784231 total allocation units on disk.
103532058 allocation units available on disk.
Total duration: 5.48 seconds (5485 ms).
PS C:\WINDOWS\system32> get-computerrestorepoint
CreationTime Description SequenceNumber EventType RestorePointType
------------ ----------- -------------- --------- ----------------
21-Jun-20 21:40:27 Good System Check Point 20 BEGIN_SYSTEM_C... 16
23-Jun-20 02:21:43 HPSF Applying updates 21 BEGIN_SYSTEM_C... APPLICATION_INSTALL
24-Jun-20 21:29:25 DDU Restore Point 23 BEGIN_SYSTEM_C... 7
26-Jun-20 18:21:49 Intel® Driver & Support Ass... 24 BEGIN_SYSTEM_C... APPLICATION_INSTALL
PS C:\WINDOWS\system32> get-computerrestorepoint -laststatus
The computer has been restored to the specified restore point.
PS C:\WINDOWS\system32>