Curiously, although the hibernation file is located in the root directory, it could not be detected by PowerShell. Apparently this is a kind of virtual file.
$Path = "$Env:SystemDrive\hiberfil.sys"
# Result $False
Test-Path -Path $Path
# Result 0
(Get-ChildItem -Path $Path -Force).Length
So, how can I find out the size of the hibernation file?
Sure, size can be recognized when resizing hibernation powercfg.exe /hibernate /size 50
. But how to know the size without changing the size of the hibernation? Thanks