/build/static/layout/Breadcrumb_cap_w.png

Determine if drive is SSD or hybrid

If anybody knows a way of determining this, either through K1000 or a script, I'd appreciate the help.  Thanks!

0 Comments   [ + ] Show comments

Answers (3)

Posted by: flip1001 9 years ago
Black Belt
0
See if this script taken from custom-inventory-rule-escaping-quotes can be modified to detect hybrid drives.

I don't have any hybrid drives to test, but the script does differentiate SSDs from HDDs.

$diskdrive = gwmi win32_diskdrive
foreach ($drive in $diskdrive){
if ($drive.model -match 'SSD'){
$ssd='SSD'
} else {
$ssd='HDD'
}
$partitions = gwmi -Query "ASSOCIATORS OF {Win32_DiskDrive.DeviceID=`"$($drive.DeviceID.replace('\','\\'))`"} WHERE AssocClass=Win32_DiskDriveToDiskPartition"
foreach ($part in $partitions){
$vols = gwmi -Query "ASSOCIATORS OF {Win32_DiskPartition.DeviceID=`"$($part.DeviceID)`"} WHERE AssocClass = Win32_LogicalDiskToPartition"
foreach ($vol in $vols){
out-host -InputObject "$ssd $($vol.name)"
}
}
}
Posted by: aragorn.2003 9 years ago
Posted by: SMal.tmcc 9 years ago
Red Belt
0
you can create a custom CIR to get the model and know what drives you have in inventory are what type.

To get the model of your drives use

shellcommandtextreturn(cmd /c wmic diskdrive get model)

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ