Added get_snapshot functions to vms, couple notes to the todo list at the bottom of the file.

This commit is contained in:
OriolFilter 2022-04-10 03:19:24 +02:00
parent bc6a939566
commit 4951c160b9

View File

@ -105,9 +105,9 @@ class VM_SCVMM:_Generic_VirtualMachine
{
return @{"PoweredOn"=$true;"PoweredOff"=$false}[$this.__VMObject.VirtualMachineState]
}
# __Load_Snapshots(){
# Get-SCVMCheckpoint -VM $this.Get_Name() # -VMMServer $this.__ServerObject.url
# }
__Load_Snapshots(){
Get-SCVMCheckpoint -VM $this.Get_Name() # -VMMServer $this.__ServerObject.url
}
#Get-SCVMCheckpoint
}
@ -124,9 +124,9 @@ class VM_vSphere:_Generic_VirtualMachine
{
return @{ "PoweredOn" = $true; "PoweredOff" = $false }[$this.__VMObject.PowerState]
}
# __Load_Snapshots(){
# Get-Snapshot -VM $this.Get_Name() # -VIServer $this.__ServerObject.url
# }
__Load_Snapshots(){
Get-Snapshot -VM $this.Get_Name() # -VIServer $this.__ServerObject.url
}
}
class VirtualizationServer