user2042493
user2042493

Reputation: 21

Querying the disk drive of device manager on a remote computer

I need to find out the names of disk drives from the device manager on a remote computer using Powershell script. Does anyone know how to ? Being very specific , till now I have been able to get the physical drives and partitions , but not the required. Please find attached a screenshot of exactly what i need.

Here's the screenshot: https://i.sstatic.net/k2AMH.jpg

Upvotes: 0

Views: 595

Answers (1)

CB.
CB.

Reputation: 60918

using wmi:

 gwmi Win32_DiskDrive -ComputerName remotecomputername | select model

The user must have local administrator credentials of remote computer and remote computer firewall must not block wmi query.

Upvotes: 2

Related Questions