2025-04-27 07:49:33 -04:00

7 lines
209 B
Plaintext

set drives = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _
("select DeviceID from Win32_LogicalDisk where DriveType=3")
for each drive in drives
WScript.Echo drive.DeviceID
next