You're running from PowerShell ISE, instead of powershell or pwsh? I can duplicate the error from ISE.
Please run the scripts from a non-ISE version of PowerShell.
Code:
UEFI Variables
--------------
SBAT (Linux only): sbat,1,2024010900 / shim,4 / grub,3 / grub.debian,4
EFI Files
---------
Get-FileHash : The file '\\.\HarddiskVolume1\EFI\Microsoft\Boot\bootmgfw.efi' cannot be read: FileStream will not open Win32 devices such as disk partitions and tape drives. Avoid use of "\\.\" in the path.
At C:\Users\GARLIN\Downloads\Check_UEFI-CA2023.ps1:1080 char:31
+ ... $BootMgr_File_Hash = (Get-FileHash -LiteralPath $BootMgr_File).Hash
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (\\.\HarddiskVol...ot\bootmgfw.efi:PSObject) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : FileReadError,Get-FileHash
Please run the scripts from a non-ISE version of PowerShell.
My Computer
System One
-
- OS
- Windows 7






