Test-OSDCoreCacheUSB
Last updated
Was this helpful?
Tests whether any OSDCloud cache drive is a USB drive.
Module
OSD
Platform
WinPE (amd64 / arm64)
Uses Get-OSDCoreCacheDrive to enumerate OSDCloud cache drives and returns true when at least one discovered cache drive has USB set to true.
Test-OSDCoreCacheUSB [[-Include] <String[]>] [[-Exclude] <String[]>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]-Include
String[]
False
Optional list of drive letters to include when searching for OSDCloud cache drives. Accepts values such as 'C', 'D:', or 'E:'. When omitted, all mounted file system drive letters are considered.
-Exclude
String[]
False
Optional list of drive letters to exclude when searching for OSDCloud cache drives. Accepts values such as 'C', 'D:', or 'E:'. Excluded drives are skipped even when they are also present in Include.
Test-OSDCoreCacheUSBReturns true if any discovered OSDCloud cache drive is a USB drive.
Returns true if drive D contains an OSDCloud cache path and is a USB drive.
Last updated
Was this helpful?
Was this helpful?
Test-OSDCoreCacheUSB -Include D
