mirror of
https://github.com/freedbygrace/Invoke-OperatingSystemDiskDetection.git
synced 2026-08-11 10:46:53 +00:00
Update Invoke-OperatingSystemDiskDetection.ps1
This commit is contained in:
@@ -157,9 +157,9 @@ Try
|
|||||||
Switch -Regex ($_.MediaType)
|
Switch -Regex ($_.MediaType)
|
||||||
{
|
{
|
||||||
'(^4$)|(^SSD$)' {1}
|
'(^4$)|(^SSD$)' {1}
|
||||||
'(^3$)|(^HDD$)' {2}
|
'(^3$)|(^HDD$)' {2}
|
||||||
'(^5$)|(^SCM$)' {3}
|
'(^5$)|(^SCM$)' {3}
|
||||||
'(^0$)|(^Unspecified$)' {4}
|
'(^0$)|(^Unspecified$)' {4}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,23 +167,23 @@ Try
|
|||||||
Switch -Regex ($_.BusType)
|
Switch -Regex ($_.BusType)
|
||||||
{
|
{
|
||||||
'(^17$)|(^NVMe$)' {1}
|
'(^17$)|(^NVMe$)' {1}
|
||||||
'(^11$)|(^SATA$)' {2}
|
'(^11$)|(^SATA$)' {2}
|
||||||
'(^8$)|(^RAID$)' {3}
|
'(^8$)|(^RAID$)' {3}
|
||||||
'(^10$)|(^SAS$)' {4}
|
'(^10$)|(^SAS$)' {4}
|
||||||
'(^12$)|(^SD$)' {5}
|
'(^12$)|(^SD$)' {5}
|
||||||
'(^7$)|(^USB$)' {6}
|
'(^7$)|(^USB$)' {6}
|
||||||
'(^1$)|(^SCSI$)' {7}
|
'(^1$)|(^SCSI$)' {7}
|
||||||
'(^6$)|(^Fibre Channel$)' {8}
|
'(^6$)|(^Fibre Channel$)' {8}
|
||||||
'(^3$)|(^ATA$)' {9}
|
'(^3$)|(^ATA$)' {9}
|
||||||
'(^15$)|(^File Backed Virtual$)' {10}
|
'(^15$)|(^File Backed Virtual$)' {10}
|
||||||
'(^2$)|(^ATAPI$)' {11}
|
'(^2$)|(^ATAPI$)' {11}
|
||||||
'(^4$)|(^1394$)' {12}
|
'(^4$)|(^1394$)' {12}
|
||||||
'(^5$)|(^SSA$)' {13}
|
'(^5$)|(^SSA$)' {13}
|
||||||
'(^9$)|(^iSCSI$)' {14}
|
'(^9$)|(^iSCSI$)' {14}
|
||||||
'(^13$)|(^MMC$)' {15}
|
'(^13$)|(^MMC$)' {15}
|
||||||
'(^14$)|(^MAX$)' {16}
|
'(^14$)|(^MAX$)' {16}
|
||||||
'(^16$)|(^Storage Spaces$)' {17}
|
'(^16$)|(^Storage Spaces$)' {17}
|
||||||
'(^0$)|(^Unknown$)' {18}
|
'(^0$)|(^Unknown$)' {18}
|
||||||
'(^18$)|(^Microsoft Reserved$)' {19}
|
'(^18$)|(^Microsoft Reserved$)' {19}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user