Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  Disk  Partition  Properties  

 Content of List Disk Partition Properties.vbs
MD5 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 ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a