JSI Tip 7482. How do I display a device Properties dialog box from a command-line?
Jerold Schulman
November 24, 2003
1 Min Read
To display a device Properties dialog box from a command line, type:
rundll32.exe devmgr.dll,DeviceProperties_RunDLL /MachineName "<\ComputerName>" /DeviceID ""
where:
<\ComputerName> is null for the local computer.
"" is stored in the enum key of the registry, as in Value Name 0 at HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesDiskEnum,
which contains SCSI\Disk&Ven_PERC&Prod_Array&Rev_V1.0\6&b8a65b&0&400 on my workstation, or from the Device Manager Detail tab.
NOTE: The quote marks around the are required if there is a space or an ampersand (&) in the string.
NOTE: See the Type Value Name for driver entries, or DRIVERQUERY.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like