Hi doikin,
Based on your request, I made the following analysis:
- Your need is to get the disk information on the server through the powershell tool;
- The commands for the disk are as follows:
(1) Get the physical disk on the computer:
get-physicaldisk
This will show you some basic information about all the disks present on your computer.
(2) Get the uniqueID of the physical disk on the computer:
get-physicaldisk | select *
This command can help you get the uniqueID of each disk while possibly the disk information on your computer, and the main difference between each disk depends on the uniqueid.
(3) Get the device id of the disk on the computer:
get-wmiobject -class win32_logicaldisk -computername computer name
Best Regards,
Xu Gu
