如何使用powershell检查硬盘驱动器是eide还是sata [英] how to check if hard drive is eide or sata with powershell

查看:67
本文介绍了如何使用powershell检查硬盘驱动器是eide还是sata的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何可以检测硬盘驱动器是eide还是sata的win32类.提前致谢.

I like to know if there is any win32 class that can detect if a hard drive is eide or sata. Thanks in advance.

推荐答案

没有直接的方法可以找到.但是,您可以使用 Win32_DiskDrive 的标题属性并对其进行解析以查看您是否有 ATA 或 SCSI 磁盘.在我的系统上,SATA 磁盘有一个标题ST9500420AS ATA Device.

There is no straight way to find that. However, you can use the caption property of Win32_DiskDrive and parse it to see if you have a ATA or SCSI disk. On my system, SATA disk has a caption ST9500420AS ATA Device.

你这样做的方式是:

Get-WMIObject -Class Win32_DiskDrive | Select Caption, Index

您可以解析 Caption 属性以查找它是否包含 ATA 或 SCSI.

You can parse the Caption property to find if it contains ATA or SCSI.

这篇关于如何使用powershell检查硬盘驱动器是eide还是sata的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆