MASIGNCLEAN104

How to use Windows PowerShell to find information about Hard Drive

iklan banner

Windows PowerShell is a powerful utility that comes preinstalled on Windows 10. Microsoft has been pushing it difficult to expire useful for developers together with information technology professionals. Windows PowerShell tin terminate too survive used to cope difficult stimulate together with SSDs. In this post, nosotros volition banking corporation check how to purpose PowerShell to notice information almost any degree of difficult drive.

Use PowerShell to notice information almost difficult drive

There are ii things that you lot tin terminate create using PowerShell to get physical disk information, including series number, disk size, costless space, together with more.

  1. Get General Information.
  2. Retrieve detailed information.

The ascendency plant alongside all the storage devices connected to your computer. You tin terminate position the type of device past times looking at the Device type column. The column displays an integer that corresponds to the type of disk stimulate the logical disk represents.

  • 0 – Unknown.
  • 1 – No Root directory.
  • 2 – Removable Disk.
  • 3 – Local Disk.
  • 4 – Network Drive.
  • 5 – Compact Disc.
  • 6 – RAM Disk.

1] Get General Information

Windows PowerShell is a powerful utility that comes preinstalled on Windows  How to purpose Windows PowerShell to notice information almost Hard Drive

Open Windows PowerShell together with execute the next ascendency to instruct full general information almost the connected difficult drives:

get-wmiobject -class win32_logicaldisk

The results volition display DeviceID, DriveType, ProviderName, FreeSpace, Size, VolumeName.

2] Retrieve detailed information

Windows PowerShell is a powerful utility that comes preinstalled on Windows  How to purpose Windows PowerShell to notice information almost Hard Drive

Open Windows PowerShell ane time again, together with type inwards the next code together with striking Enter:

wmic diskdrive instruct <PARAMETERS>

The next are the parameters, together with inwards representative of multiple parameters, they should survive separated past times a comma:

  • Availability
  • BytesPerSector
  • Capabilities
  • CapabilityDescriptions
  • Caption
  • CompressionMethod
  • ConfigManagerErrorCode
  • ConfigManagerUserConfig
  • CreationClassName
  • DefaultBlockSize
  • Description
  • DeviceID
  • ErrorCleared
  • ErrorDescription
  • ErrorMethodology
  • FirmwareRevision
  • Index
  • InstallDate
  • InterfaceType
  • LastErrorCode
  • Manufacturer
  • MaxBlockSize
  • MaxMediaSize
  • MediaLoaded
  • MediaType
  • MinBlockSize
  • Model
  • Name
  • NeedsCleaning
  • NumberOfMediaSupported
  • Partitions
  • PNPDeviceID
  • PowerManagementCapabilities
  • PowerManagementSupported
  • SCSIBus
  • SCSILogicalUnit
  • SCSIPort
  • SCSITargetId
  • SectorsPerTrack
  • SerialNumber
  • Signature
  • Size
  • Status
  • StatusInfo
  • SystemCreationClassName
  • SystemName
  • TotalCylinders
  • TotalHeads
  • TotalSectors
  • TotalTracks
  • TracksPerCylinder

The number volition survive sorted, a tabular shape of the requested information within the Windows PowerShell ascendency line.

You tin terminate read to a greater extent than almost the commands on docs.microsoft.com.


Source: https://www.thewindowsclub.com/
Share This :