Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Disk Partition PropertiesContent of List Disk Partition Properties.vbsMD5 Hash: F0C11E941107F6F286665C39D6F1C11D |
||
' Description: Lists the properties of all the disk partitions on a computer.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colDiskPartitions = objWMIService.ExecQuery _ ("Select * from Win32_DiskPartition") For each objPartition in colDiskPartitions Wscript.Echo "Block Size: " & objPartition.BlockSize Wscript.Echo "Bootable: " & objPartition.Bootable Wscript.Echo "Boot Partition: " & objPartition.BootPartition Wscript.Echo "Description: " & objPartition.Description Wscript.Echo "Device ID: " & objPartition.DeviceID Wscript.Echo "Disk Index: " & objPartition.DiskIndex Wscript.Echo "Index: " & objPartition.Index Wscript.Echo "Name: " & objPartition.Name Wscript.Echo "Number Of Blocks: " & _ objPartition.NumberOfBlocks Wscript.Echo "Primary Partition: " & _ objPartition.PrimaryPartition Wscript.Echo "Size: " & objPartition.Size Wscript.Echo "Starting Offset: " & _ objPartition.StartingOffset Wscript.Echo "Type: " & objPartition.Type Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |