2,187
edits
m (→VM's Recently Created: Added border around script) |
m (→VM's Recently Created: Another minor edit) |
||
Line 436: | Line 436: | ||
$vmCreated.VM_Name = $Task.Vm.name | $vmCreated.VM_Name = $Task.Vm.name | ||
$vmCreated.Created = $Task.CreatedTime | $vmCreated.Created = $Task.CreatedTime | ||
$vmCreated.ByUser = [regex]::Replace($Task.UserName, " | $vmCreated.ByUser = [regex]::Replace($Task.UserName, "YourDomain\\", "") | ||
$vmCreated.Method = $Task.gettype().name # VmDeployedEvent - from template, VmClonedEvent - from existing VM, VmCreatedEvent - from scratch/Convertor import | $vmCreated.Method = $Task.gettype().name # VmDeployedEvent - from template, VmClonedEvent - from existing VM, VmCreatedEvent - from scratch/Convertor import | ||
$vmCreated.Source = $srcMachine | $vmCreated.Source = $srcMachine |