You need to get a list of available physical disks on a remote machine from the DOS command-line.
As long as you an admin on the target machine (e.g., a Domain Admin, or in the local Administrators group), you can get this information using WMI.
- If not already available, download and extract the PsTools suite
- Open a CMD window and change directory to the folder where you extracted the PsTools commands
- Use the PSEXEC command to run WMI on the remote machine (in this example, server1):
C:>PsExec.exe \server1 wmic.exe logicaldisk get caption,providername,drivetype,volumename
PsExec v1.98 – Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals –www.sysinternals.comCaption DriveType ProviderName
F: 5 U3 System
- The WMI output will tell you what drives are available; the drive type should be one of the following:
2 == Remove drive (i.e. USB drive)
3 == Local hard disk
4 == Network disk
5 == CD/DVD
6 == RAM DiskAny other value means that WMI could not determine the type of disk.