I would like to create a report to identify which machines have SSD's vs HDDs
Hello,
First time post here and I'm a bit new to Dell Kace as well. I would like to create a report to show which computers have SSD's and which have HDD's so we can go about prioritizing PC upgrades. Reporting drive information such as model/serial number would also be adequate since I can look those up.
Would it be easy to create a report to do this?
The environment is predominantly Windows 7 with some other various Windows environments as well.
Any help is appreciated,
John
2 Comments
[ + ] Show comments
-
there is an AutoIt Script that detects SSD or HDD. Now i have no access, but will look later. - aragorn.2003 8 years ago
-
https://www.autoitconsulting.com/site/scripting/detect-an-ssd-disk-using-a-script/ - aragorn.2003 8 years ago
-
Thanks a lot! I will be taking a look into this. - John.Cornell 8 years ago
Answers (3)
Please log in to answer
Posted by:
eduardo_hernandez@businessconexion.com.mx
3 years ago
Try also, To find Hard Disk Serial Number in Windows 10, do the following.
- Open an elevated command prompt.
- Type or copy-paste the following command:
wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber
.
ShellCommandTextReturn(cmd /c wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber)
More Info and options:
https://winaero.com/find-hard-disk-serial-number-windows-10/
Posted by:
chucksteel
8 years ago
The K1000 doesn't track the type of drive in a computer, unfortunately. You will have to create a script like the one mentioned in the comments, that will detect that information. Once you have a script you can have it store the information in a file and then import that into the inventory using a custom inventory rule. If you can write a one line PowerShell script then you can use the ShellCommandTextReturn(command) custom inventory rule to just pull the information straight into the inventory. This post might help.
Posted by:
chucksteel
8 years ago
I couldn't resist spending more time on this. Here's a custom inventory rule that works on Windows 10 systems, I haven't had a chance to test on Windows 7:
ShellCommandTextReturn(powershell -Command "$hash = @{0='Unknown'; 3='HDD'; 4='SSD'; 5='SCM'};Get-WmiObject -namespace root\Microsoft\Windows\Storage MSFT_PhysicalDisk | Select-Object DeviceID,Model,@{LABEL='DriveType';EXPRESSION={$hash.item([int]$_.MediaType)}}")
Here's an example of the output:
*Hard Drive Type: | DeviceID Model DriveType -------- ----- --------- 0 SAMSUNG MZFLV256HCHP-000MV SSD [string] |
Enjoy!
Comments:
-
FYI, just tested on Windows 7 and it doesn't work. Apparently the WMI namespace I'm using only exists on Windows 10.
Here's a post that might be useful if you know the drive models of your machines:
https://blogs.technet.microsoft.com/heyscriptingguy/2013/03/17/powertip-use-powershell-to-identify-ssd/ - chucksteel 8 years ago-
Thanks a lot for taking a look into that for me, and giving me something to go on. I'll take a look at the link to see what I can do.
Thanks again! - John.Cornell 8 years ago