Solved garlin's PowerShell scripts for updating Secure Boot CA 2023


OK. I threw in more{ where $_.DriveLetter -match '[A-Z]' }so non-matches should be excluded.
Nope. Same combination of error. Saw this message for the first 'Skipping USB Drive H: "VTOYEFI"'
 

My Computer My Computer

At a glance

Windows 11 ProIntel Core Ultra16GBIntel(R) Arc Graphics
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14 OLED
CPU
Intel Core Ultra
Memory
16GB
Graphics Card(s)
Intel(R) Arc Graphics
Sound Card
Realtek High Definition Audio(SST)
Screen Resolution
2880 x 1800
Hard Drives
500 GB NVMe SSD
Internet Speed
1,500Mbps
Browser
Firefox, Edge
Antivirus
Windows Defender
Nope. Same combination of error. Saw this message for the first 'Skipping USB Drive H: "VTOYEFI"'
I'm teaching the script to ignore Ventoy drives for two simple reasons:

1. Ventoy uses its own GRUB bootloader, so there's no point in me trying to analyze it.
2. Ventoy allows you to drop any random set of ISO files, in any folder under \ventoy. Since there isn't a fixed naming convention, there's no point trying to hunt down a randomly named Windows ISO.

Try this magic query:
Code:
Get-CimInstance -ClassName Win32_LogicalDisk | where { $_.FileSystem -and ($_.Description -match 'Removable|CD-ROM') -or ($_.Description -match 'Fixed' -and $_.FileSystem -match 'FAT') }
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
I'm teaching the script to ignore Ventoy drives for two simple reasons:

1. Ventoy uses its own GRUB bootloader, so there's no point in me trying to analyze it.
2. Ventoy allows you to drop any random set of ISO files, in any folder under \ventoy. Since there isn't a fixed naming convention, there's no point trying to hunt down a randomly named Windows ISO.

Try this magic query:
Code:
Get-CimInstance -ClassName Win32_LogicalDisk | where { $_.FileSystem -and ($_.Description -match 'Removable|CD-ROM') -or ($_.Description -match 'Fixed' -and $_.FileSystem -match 'FAT') }
Ventoy is not the issue, its the Hasleo that raises the error.

The above magic quesry produced this with Hasleo
DeviceID DriveType ProviderName VolumeName Size FreeSpace
-------- --------- ------------ ---------- ---- ---------
F: 2 HASLEOBS 31583109120 30560075776

and this with Ventoy
DeviceID DriveType ProviderName VolumeName Size FreeSpace
-------- --------- ------------ ---------- ---- ---------
G: 2 Ventoy 30991024128 3305439232
H: 2 VTOYEFI 33277440 4493312
 

My Computer My Computer

At a glance

Windows 11 ProIntel Core Ultra16GBIntel(R) Arc Graphics
OS
Windows 11 Pro
Computer type
Laptop
Manufacturer/Model
ASUS Zenbook 14 OLED
CPU
Intel Core Ultra
Memory
16GB
Graphics Card(s)
Intel(R) Arc Graphics
Sound Card
Realtek High Definition Audio(SST)
Screen Resolution
2880 x 1800
Hard Drives
500 GB NVMe SSD
Internet Speed
1,500Mbps
Browser
Firefox, Edge
Antivirus
Windows Defender
Back
Top Bottom