HVClass.ps1
Class HVMachineInfo { [string]$MachineName [string]$State [int]$CPUUsage [UInt64]$MemoryAssigned [string]$MACAddress [array]$HardDisk [bool]$Checkpoint [array]$BootInfo [timespan]$Uptime [string]$Status [string]$Version [string]$Generation [string]$HVServer [int]$LogicalProcessorCount [UInt64]$MemoryCapacity HVMachineInfo ( [string]$MachineName, [string]$State, [int]$CPUUsage, [UInt64]$MemoryAssigned, [string]$MACAddress, [array]$HardDisk, [bool]$Checkpoint, [array]$BootInfo, [timespan]$Uptime, [string]$Status, [string]$Version, [string]$Generation, [string]$HVServer, [int]$LogicalProcessorCount, [UInt64]$MemoryCapacity ) { $this.MachineName = $MachineName $this.State = $State $this.CPUUsage = $CPUUsage $this.MemoryAssigned = $MemoryAssigned $this.MacAddress = $MACAddress $this.HardDisk = $HardDisk $this.Checkpoint = $Checkpoint $this.BootInfo = $BootInfo $this.Uptime = $Uptime $this.Status = $Status $this.Version = $Version $this.Generation = $Generation $this.HVServer = $HVServer $this.LogicalProcessorCount = $LogicalProcessorCount $this.MemoryCapacity = $MemoryCapacity } } Class DiskInfo { [string]$HVServer [string]$Diskname [string]$MachineName DiskInfo ( [string]$HVServer, [string]$Diskname, [string]$MachineName ) { $this.HVServer = $HVServer $this.Diskname = $Diskname $this.MachineName = $MachineName } } |