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  Virtual  Server  Hard  Disk  Connection  Information  

 Content of List Virtual Server Hard Disk Connection Information.vbs
MD5 Hash: BABA6521EDD1076AAF66A03B9BA3C2D6
' Description: Lists hard disk connection information for all the virtual machines on a computer.


On Error Resume Next

Set objVS = CreateObject("VirtualServer.Application")
set colVMs = objVS.VirtualMachines

For Each objVM in colVMS
Set colHardDiskConnections = objVM.HardDiskConnections
For Each objDrive in colHardDiskConnections
Wscript.Echo "Virtual machine: " & objVM.Name
Wscript.Echo "Bus number: " & objDrive.BusNumber
Wscript.Echo "Bus type: " & objDrive.BusType
Wscript.Echo "Device number: " & objDrive.DeviceNumber
Set objHardDisk = objDrive.HardDisk
Wscript.Echo "Hard disk file: " & objHardDisk.File
Wscript.Echo "Host drive identifier: " & _
objHardDisk.HostDriveIdentifier
Wscript.Echo "Host free disk space: " & objHardDisk.HostFreeDiskSpace
Wscript.Echo "Host volume identifier: " & _
objHardDisk.HostVolumeIdentifier
Wscript.Echo "Size in guest: " & objHardDisk.SizeInGuest
Wscript.Echo "Size on host: " & objHardDisk.SizeOnHost
Wscript.Echo "Type: " & objHardDisk.Type
Set objUndoDrive = objDrive.UndoHardDisk
Wscript.Echo "Hard disk file: " & objUndoDrive.File
Next
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